From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32194 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: perro tuerto Newsgroups: gmane.text.pandoc Subject: Code blocks in RST -> Markdown Date: Fri, 17 Feb 2023 11:33:30 -0800 (PST) Message-ID: <6e7992b3-35a1-498b-a2ff-d136d7a96e95n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_786_1788925937.1676662410241" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27148"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMYR75V2YMRBC5NX6PQMGQE7WSW22I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Feb 17 20:33:36 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f186.google.com ([209.85.160.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pT6UA-0006p7-Kh for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 17 Feb 2023 20:33:34 +0100 Original-Received: by mail-qt1-f186.google.com with SMTP id t16-20020ac85890000000b003b9b4ec27c4sf1045212qta.19 for ; Fri, 17 Feb 2023 11:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=bJh6PTaMh8fioiGSuT1PqaJahN9M4+uZJ8UhfdPFTfw=; b=fJFoKjG6B7STgj0qY2g8djLAd37cE1z6zPr/XKczsQu/0Fjs0Y88CxqLzHWmwJEPXd FZy8v06Ij3YNlJTfFQMlPp3aBn5Ov4lItpGSvLHFfxO464XeFRt7IOFhDmRzagbh/cNB hcVAvYzwKd+3O1k0BRwiJhjCevxkN4cIzRnD2aDgCFGR94ihTemWVN0SBaKRCjjGsKDe d269q4j6h68V94/LKCM6To0NzrtmqVARhVMYPAz1qNdHmt+timpHrr0QL1THX5eapxYm ojX3FsPUJNbkxykQ17O6CsdOYvY2EhoOOnkCoXSGzaLLwebo6lK/3Dtoo0vKZTLpgXQj /hQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=bJh6PTaMh8fioiGSuT1PqaJahN9M4+uZJ8UhfdPFTfw=; b=VFc2nStWs19c5n2LTW9hjpM0f9kcJH/HOvAV27PWgkl4V5EMl+yhUD0RsHKq8bjT5x trRF3eiG8JsE+OaeqNN1rcOM/b8CXF7BrLSV56esQ/mfHkdJtNUMfAk/EOZd0aCTrumK YgugLNkug5edFy+/VXSJ/5UTai3+SVOJgYF45EStV4tt36woS4d98MziyHX9cY5FUWa0 u5Bda+fSEJ0oCRT3oAjWHMP/8nSpmtPcR4n+7qPgL2uMoBrQLCE8IstP/PCzzjuh1Glx FGX50y639kRg14HlIaGsff4AfrPTN5DoKb4Rce+ZySvbJycvEcVhf4uOS353Aega0Q3l mFgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=bJh6PTaMh8fioiGSuT1PqaJahN9M4+uZJ8UhfdPFTfw=; b=TD1OGY+Bfi8HfTupMqEkIkeiVV0EJ9AETUXU1zxpTfxThT+R8lkF7BFE1C+t3z8K75 DI2TftL+1rwSb74RW2seWz1oZMLAZBlJUQRXm47krkLSOvcSxqBeqHvm+Fy3mAAkhLQZ s8kh+MiIWGvzzUsUIBrSUcs2GZJerKxUiejCikGy9I6LOkT8fl8IwVvwCHO99aK0lKX/ P0kfzMnrrpc18+aFuUGA/tvQ1jnQEo1rshwYMaHGze5a0J2M83YvBzZ42r5pZrjEaIpE m7/f3LMffOPZG95yzv5djGAuuvB0r621x9uZqnjpJ1dXeeG2KwF5+o3IwEgvFkhUsxfw hTsw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXejMdrocBVCMczTDK7zZCiZgnWMO1C8sHzCj+9MrhIqN/maMBZ cPywfCwEAofy821qjvvcRwk= X-Google-Smtp-Source: AK7set/7JGxomBe77Z47zaTPeDcmkjf6en1DgFxcdgDcOeECa4GLWh3UZ5YFADgnhlOb44aNVQjxkw== X-Received: by 2002:ac8:c2:0:b0:3bd:f8:f6f3 with SMTP id d2-20020ac800c2000000b003bd00f8f6f3mr289781qtg.7.1676662413569; Fri, 17 Feb 2023 11:33:33 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:b09:b0:73b:9f41:ffe3 with SMTP id t9-20020a05620a0b0900b0073b9f41ffe3ls124665qkg.1.-pod-prod-gmail; Fri, 17 Feb 2023 11:33:31 -0800 (PST) X-Received: by 2002:a05:620a:b0e:b0:71f:b8ba:ff45 with SMTP id t14-20020a05620a0b0e00b0071fb8baff45mr258004qkg.3.1676662410874; Fri, 17 Feb 2023 11:33:30 -0800 (PST) X-Original-Sender: nika.zhenya-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:32194 Archived-At: ------=_Part_786_1788925937.1676662410241 Content-Type: multipart/alternative; boundary="----=_Part_787_590951260.1676662410241" ------=_Part_787_590951260.1676662410241 Content-Type: text/plain; charset="UTF-8" Hi, I am trying to understand why the following code block in RST is not working when I exported it to MD: .. code:: sh echo "Hi" The result that I get is this one: .. code:: sh echo "Hi" The native is this: Para [ Str ".." , Space , Str "code::" , Space , Str "sh" ] , Para [ Str "echo" , Space , Quoted DoubleQuote [ Str "Hi" ] ] Also, if I do the inverse (MD -> RST), I actually get the syntax, for example: ``` sh echo "Hi" ``` Gets: .. code:: sh echo "Hi" So it is RST -> MD the one that is showing an unexpected behavior for me. What am I doing wrong? I also tried code-block instead of code. Thanks -- 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 email 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/6e7992b3-35a1-498b-a2ff-d136d7a96e95n%40googlegroups.com. ------=_Part_787_590951260.1676662410241 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I am trying to understand why the following code block in RST is n= ot working when I exported it to MD:

.. co= de:: sh

=C2=A0=C2=A0 echo "Hi"

The result that I get is this one:

= .. code:: sh

echo "Hi"

T= he native is this:

Para
=C2=A0 =C2=A0= [ Str ".." , Space , Str "code::" , Space , Str "sh" ]
, Para
= =C2=A0 =C2=A0 [ Str "echo" , Space , Quoted DoubleQuote [ Str "Hi" ] ]

Also, if I do the inverse (MD -> RST= ), I actually get the syntax, for example:

``` sh
echo "Hi"
```

Gets:

.. code:: sh

=C2=A0 =C2=A0echo "Hi= "

So it is RST -> MD the one that is s= howing an unexpected behavior for me.

What am I = doing wrong? I also tried code-block instead of code.

Thanks

--
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/6e7992b3-35a1-498b-a2ff-d136d7a96e95n%40googlegroups.= com.
------=_Part_787_590951260.1676662410241-- ------=_Part_786_1788925937.1676662410241--