From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25948 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Tell pandoc to respect rst in markdown files while transforming to rst Date: Fri, 21 Aug 2020 11:51:50 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36456"; mail-complaints-to="usenet@ciao.gmane.io" To: BJ , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBVFPQD5AKGQEN4L7NRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 21 20:52:08 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9C92-0009L0-5Y for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Aug 2020 20:52:08 +0200 Original-Received: by mail-yb1-f187.google.com with SMTP id a5sf3027627ybh.3 for ; Fri, 21 Aug 2020 11:52:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598035927; cv=pass; d=google.com; s=arc-20160816; b=wtvn0EUGm4Hx/kePfs7Wu+Dyf7tnl29zzMAA0fd7se8dpVDoAadkB7X6qkcfROLEJk SA0vCKJdnW9Vprnif5nhD1pzW4LaSD7t6KEra8n3DHxpbsZBhqBbyWb1Yy7M/i/U9G1P kRTFLuZTgNE2Tzzc35gSRSY20i5o7UFBpx4pFKZuHBHTNXjtL7N0pwyJI0ndcFCi8k5w FtAFLMm5ikrcNdH7E5V/p17Bpd9UYv8V6uCdyhqoyfm4ZBTcaZB0AtS8CgBWMlhvSbTn 1HznN1naw1XMI8UnAeFnI7jiAXbZL5QAFwkekHAI4n9rCNpuKW8cmF3VD73ombWDDId5 t9nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=1UF+nq5y1j45yu+/MeJg5KKhLdSkxv8CHvdVcuAqzbM=; b=I8buR4jqBctubBg3+gaAf5QOOYrPrv4B1BeYo+nTlOcaxRfo/wqeUz6s0gT68B1b86 2G/zaHY9aPO7/Kd67QJhk/TN7Rf6rklqPkbf0vhv7FIwz3wVxcx6tqljRN22RrtgBK+x IwLy2dUQyhmPbVmATLZ4fXFEpvtaiWnVZBmx4ry9ISHErAuo5Xtd927MVT5R/TvdP354 DPSXbW3MeKnx6Z4EnZC4eukSeSgiMPSiTaz46A3hI3B1HGBMiFtKUgN4U9BFwjRUFjga +IM7KZ3+6manwADS8J3gRKknZDB4TQdymm1tfEWyvPmfcMxCv+oVSLWYvysR0hvm3c5L 41dA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FO7fQut4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=1UF+nq5y1j45yu+/MeJg5KKhLdSkxv8CHvdVcuAqzbM=; b=SsK5u29EuV1sXLQZar+XeYwat2epyeN/wauzk2eAMBJAAMOQaO4VMTDMrW3cUCrZaL Cge7GHpJ2RT/gxYd52G2oAwD0IgpfHvr+AogJVhpBrKgaVVsl4B3RIbRdn0QwdqOGsL0 mxwfhH1rw4zdNmvFjuP5vCYkcfE6s5TrD0UaFzBb8kbNi5XGfshXk1a6TT4oUWb1qerr fXe4twJucdlS65mEMyFH5YXFxarV7ykiDrxnab8jIYBQikaCNVE41TNLQfHBmtGiqaMc bLtkbcVrFdWlt/WvrZ5+2/zrvShd8zIEz6DI5u5iRZSUGJn8QVxwwU0Fug7F5e4hUSNi bScA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1UF+nq5y1j45yu+/MeJg5KKhLdSkxv8CHvdVcuAqzbM=; b=WIY9r+9phA+MyBVrBU07YV30zNVj6C3GKXsInbfPvC0uvruOLhnwD1sbmKnIGbppDY C6+R1VtFNxaf5NNXRSa/TJuXFZxeoUIeizx1VLsxAL0VUCOr4Elqtm//NPvKo4LXlG6f bG3eNDH6XiJAcZHV0EpymI5Vqgv5z5iqbbCYZ0hh5TQdffHXYTy7zF0CgXfQKIuAWH5L jxr/+0q9T+WgOU7XuXG3zL0u9blGdzVfVe9rvVBz64jfniTXDwP/Yma+uWQ/PU5lYGK4 rYnzGarTXsSfQ7IE8261tsDZoBHwaAa1YoCj4qaPQfnoJPvV3gS3HQOTCiE7Hwo0e9aM TW8g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530HkkGyhMXRWq4brB6obMXIRhjgFexSqjQEsWoZfd+17g5/qNtw byFDBujUuke+ipmba2qtiu0= X-Google-Smtp-Source: ABdhPJxwCmMgkQoDU4IGnnLrt42u661tqEt97BBU+NcLnBnEqhhOCgQcXDgd9G6QOVBtLYF/bfy1tQ== X-Received: by 2002:a25:14c3:: with SMTP id 186mr5868328ybu.114.1598035927226; Fri, 21 Aug 2020 11:52:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6902:70d:: with SMTP id k13ls1160807ybt.9.gmail; Fri, 21 Aug 2020 11:52:04 -0700 (PDT) X-Received: by 2002:a25:e684:: with SMTP id d126mr5720291ybh.332.1598035924003; Fri, 21 Aug 2020 11:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598035923; cv=none; d=google.com; s=arc-20160816; b=JfKN5Acg0SQ50tDyIlUzJB5qDdZc0Sro8XHAl8Zw0lqvJspCX2BATUv2prHOhWbLoS N6Oa80sHk4iftIwoUyalAgPViDRaxqUopL4HqHMS9BBLLifeRux4yg7CCYiAva1C/ksC 9exj+paSrwRcIwQ0bVjq6azs/ke2VhyQMbQPvZLEfnWy/G4sEUVYWLULzATkLxxRCn+r yMZJM9ia5w9z87e+0NaYJhrFes0V6fTGa3UEzqjFJJftw3oo7AfLH/R5MA3Xb9LRYAUu yb1fVgujQeXjin5Ew7Q7hIax4oB0Z5bXvki5AB5/rra9pxTlJnW43Dwcc7rr95ARKSV0 fbfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=vr6j2NyDCaPeiwefuq/HB5GB6Kvr79vRZFD0vQkt70A=; b=iqnfaKnIPXwkKU41k5HVs8oKcOyh9u6IxMWfHObcA3wIlKUBLGWhCbxN+j7Vf0QCw5 vCAJuNWzwaV0I/cHoZPI7PS+bBa/Dmqgo2+zQwl0BuoUSE6SgDEiogBwdNgM8BlRD8gu tzKT5XI4YzDyqx/8eCL1CWYrou4YwSkKwrKpJt5wqis24CKB0M+ri85IsnvhesQfFiPm zu8Qr5jjWb2ww8/gwtkgRcFj9/8A1kF6qbgDBsU66hawThInTGFURXigjCKewmQFb0be oIBggjttY9DSi9ehHxmRz8Bc0b0bMcQwmhCAzvObFumb6LKrKJS88hSR8pH6J4BinGVR 956A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FO7fQut4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com. [2607:f8b0:4864:20::62e]) by gmr-mx.google.com with ESMTPS id i144si153692yba.4.2020.08.21.11.52.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 11:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) client-ip=2607:f8b0:4864:20::62e; Original-Received: by mail-pl1-x62e.google.com with SMTP id h2so1293995plr.0 for ; Fri, 21 Aug 2020 11:52:03 -0700 (PDT) X-Received: by 2002:a17:90b:1107:: with SMTP id gi7mr3436897pjb.177.1598035922698; Fri, 21 Aug 2020 11:52:02 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id h9sm3489024pfq.18.2020.08.21.11.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 11:52:01 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 02367A2A1; Fri, 21 Aug 2020 14:51:51 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FO7fQut4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:25948 Archived-At: If you're using the most recent version of pandoc, you should be able to do pandoc -f gfm+raw_attribute and get support for the raw attribute syntax. BJ writes: > Sorry for contacting you personally. I answered via my email client before. > I hope I did it correct now. > > Yes you are right, thanks. This kind of conversion works. > https://pandoc.org/try/?text=%23+markdown%0A%0A%60%60%60%7B%3Drst%7D%0A%60this+is+rst%60_%0A%60%60%60%0A&from=markdown&to=rst&standalone=0 > > If using Github flavoured markdown as source format, it will look > differently... I will do some more investigation on my side, to find out, > which better fits my needs. > > Thanks so far! > On Friday, August 14, 2020 at 8:15:58 PM UTC+2 John MacFarlane wrote: > >> >> > How to tell pandoc while transforming the RST-enriched markdown to RST >> to >> > keep this indention? It seems pandoc removes (left trim) without mercy. >> Is >> > there a toggle or plugin I missed? Or could I add some magic-markup in >> the >> > source markdown? >> >> Well, that's very easy, if you're using pandoc's markdown >> extensions. Just use a "raw attribute": >> >> ```{=rst} >> .. note:: >> >> .. include:: /path/to/file >> >> Some static text also with RST-valid indention >> ``` >> >> This will be passed verbatim to RST output and ignored for other >> formats. >> >> > > -- > 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/ba94e3c9-2f4b-4a5a-bd3b-4f6886aee523n%40googlegroups.com.