From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29813 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?S=C3=A9bastien_Boisg=C3=A9rault?= Newsgroups: gmane.text.pandoc Subject: Re: how can I conver one style markdown to another style markdown Date: Fri, 17 Dec 2021 07:28:10 -0800 (PST) Message-ID: References: <631a426b-f5d3-4677-a029-0ef30863fdf0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1868_266855503.1639754890918" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27415"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCIOBSUCXMMRBDGZ6KGQMGQEKTTZIOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 17 16:28:14 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1myF9a-0006vr-LZ for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 17 Dec 2021 16:28:14 +0100 Original-Received: by mail-ot1-f62.google.com with SMTP id y19-20020a0568301d9300b0056396063834sf1106871oti.18 for ; Fri, 17 Dec 2021 07:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=nx+MC621uK7dkMpFSHKOcBGDTN5bfh/DSLCu/NLiP1s=; b=qUYwZHmtuXwhP46VR3Tk6tOySZLz/MhOH9DUc+wXi/lLwq6E5WQdR6rPPahxkIpeJy wRSnCFDY7cGtKEGS0nr93jyXN3WPpvz9pVGUNiMN4c6Wt5JpRsg7CXlpgUZLlRwZE3lG SMheYJIlGaCjrsr+xgrWJXytqA05FI0boyxKvx12w5itNOqi1RdxTUrOaGZNzGc8tUDb 2dMA/H06DzkX8Z22ylWuYlrfB1JYUdJOhAlyoP0Ot9ajtZCq6REBaBo7G+cEQVzgNjEM IZ5gRxt71AxvbtLdJ9/tsUnxEeUop8pkBcbD0GjhH2MDXMneo3vula6agaTPZqU+MLZW QHHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=nx+MC621uK7dkMpFSHKOcBGDTN5bfh/DSLCu/NLiP1s=; b=XDx3K9k2a8aKT6C+WM6luwFO42k/a7/vBmWwuEINbmgLue7HAhLzBYGn1jjo2O2W8a Xm33lnXEOa26QRos/qE1x3YLOPAzZgdPvJ/pvxUEHN+eKauiH/zPEemfjxrSi7s+Ye9X 6LcdvpUncUKDzEYyLRZGfoPDthMPKt3tDeD9+9+kY8Pk+HY8/V4vkERkGbN6kGIdpzUG 7UVuKNKLBi/rwJs2+UKM0vmhC4Mf0HrBOhjbFiTYiKCJkJAHoSeINro0sa6HjJrsh4+V bHK5Cl+Y1aV+7VKU0LwBALfh5WkRaqPWNh8ztJ6h0JfbTD9yyiRLEWIjzfdWaeh5CH/7 FFzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=nx+MC621uK7dkMpFSHKOcBGDTN5bfh/DSLCu/NLiP1s=; b=3gDrYaJcBXcbVoi2eocw6KV1aoPRAjbjBpzSMLWyQZ0wvapQUd88000pFizyUdGuVl qqT0KXtaYXFQTC6wbsRKIiMgVMhhAtqFhNysLXX8Q0W73Zrdkw9I2Ev7rf/z0KDLANhS 6dOLSZVCUirO3d0at0KlqTCpm7ockh8WXLWJVbttA08wFjdA2Xav863oHXSBETuUXC09 QEPshkmiXf7ObHQN+PBwA1P2aITrHumnvWJwA7ruzlkZLL9MFHAlisC2Yto+4LxAsX/N dASihXc70BST3KPOkwiX1iVayIadxRSGqxG1NyrdhkRzyJ98vW+MEvcWNnucCfLnDkEi r6sA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532AwUVgrEHpzy7TY98jh4/jt1hrmeyLKUobn65xPAYK/Q7gjcUd B7RxiAk9T7a1Pv0/5rgRxFw= X-Google-Smtp-Source: ABdhPJyQYNX+6fC0T424qnUIKOicLbo7l6h4OC6ImOjVU3a+BP2jREcaFxsDjS0ikBI5Y41FlI30kQ== X-Received: by 2002:a05:6830:1e97:: with SMTP id n23mr2446840otr.4.1639754893108; Fri, 17 Dec 2021 07:28:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:3499:: with SMTP id c25ls2177556otu.4.gmail; Fri, 17 Dec 2021 07:28:11 -0800 (PST) X-Received: by 2002:a05:6830:1dab:: with SMTP id z11mr2350537oti.103.1639754891457; Fri, 17 Dec 2021 07:28:11 -0800 (PST) In-Reply-To: <631a426b-f5d3-4677-a029-0ef30863fdf0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: Sebastien.Boisgerault-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29813 Archived-At: ------=_Part_1868_266855503.1639754890918 Content-Type: multipart/alternative; boundary="----=_Part_1869_121332431.1639754890918" ------=_Part_1869_121332431.1639754890918 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Have you considered the answer provided here? (custom Lua filter) : https://stackoverflow.com/questions/66945893/use-fenced-code-blocks-in-pand= oc-markdown-output Le jeudi 16 d=C3=A9cembre 2021 =C3=A0 17:31:24 UTC+1, starsare...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= a =C3=A9crit : > I try to use this, but not work, style not changed > pandoc -f markdown -t markdown -o string.h.md.out string.h.md > > the following is a code block, how can I convert it to ``` style > > #include > #include > #include > int main (int argc, char const *argc[]){ > char s[] =3D "hello"; > char *p =3D strchr (s, 'l'); > char c =3D*p; > *p =3D'\d'; > char *t =3D (char*)malloc(strlen(p)+1); > strcpy(t,p); > printf("%s\n",t); > free(t); > =20 > return 0; > } > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/ef43685e-e382-4373-a06b-0c46e82f591an%40googlegroups.com. ------=_Part_1869_121332431.1639754890918 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you considered the answer provided here? (custom Lua filter) :

https://stackoverflow.com/questions/66945893/use= -fenced-code-blocks-in-pandoc-markdown-output


Le jeudi 16 d= =C3=A9cembre 2021 =C3=A0 17:31:24 UTC+1, starsare...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a =C3=A9crit= =C2=A0:
= I try to use this, but not work, style not changed
pandoc -f markdown = -t markdown -o string.h.md.out string.h.md
<= br>
the following is a code block, how can I convert it to ``` st= yle

=C2=A0 =C2=A0 #include <stdio.h>
=C2=A0 =C2=A0 #= include <string.h>
=C2=A0 =C2=A0 #include <stdlib.h>
=C2= =A0 =C2=A0 int main (int argc, char const *argc[]){
=C2=A0 =C2=A0 =C2=A0= =C2=A0 char s[] =3D "hello";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 char= *p =3D strchr (s, 'l');
=C2=A0 =C2=A0 =C2=A0 =C2=A0 char c =3D*= p;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 *p =3D'\d';
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 char *t =3D (char*)malloc(strlen(p)+1);
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 strcpy(t,p);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("%s\n",= t);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 free(t);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;
=C2=A0 =C2=A0 }

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/ef43685e-e382-4373-a06b-0c46e82f591an%40googlegroups.= com.
------=_Part_1869_121332431.1639754890918-- ------=_Part_1868_266855503.1639754890918--