From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25875 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BJ Newsgroups: gmane.text.pandoc Subject: Tell pandoc to respect rst in markdown files while transforming to rst Date: Fri, 14 Aug 2020 07:58:06 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_180_303698100.1597417086306" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27907"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOZNCUDLYIP7TG27ECRUBD6PQTX2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 14 16:58:13 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k6b9n-00076b-DV for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 14 Aug 2020 16:58:11 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id h31sf3772484otb.23 for ; Fri, 14 Aug 2020 07:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=tdrE6GEmskoknA8TxFcG1QfY3U4XavWU8s4x40KDVHY=; b=V7iRPQ34U4Yj3q1d4nLqm6bNDmpxj3vkHs24yM7XaJGnzxDD/I4df64d2Klfym0K+9 daWdIdI6zeF3R0sEr3KAH22u3bJr4rMXfgrZg7GPwvqQRBOV6rOcDxwl9rWSvVu6WWdY KJ7WeakL2ZbzzSR1yYpwjzDxGPZFgcTAAWZOwuHkhcseXvthiiLMYwRJhQhy/QU91UVd zFXFZ7fwvNDJbJ++n+hQHl+wN0pv/foYUcmAHJTmlQPR2JcsA3JpI1q2cnf30fCrJ48a itT+Na9HNG47g+6TY9NgfjEorkc+ZsByO/4wQmwuKshebVfxYtVyv1bV6Jx0y7/zcQqx yFRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=signavio.com; s=google; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=tdrE6GEmskoknA8TxFcG1QfY3U4XavWU8s4x40KDVHY=; b=F0ywJUZ8AitSeXYiB5EbUcgO3VRU2JOlG5L1c/jbGLYajXd8hFOBW0sNEbnT1fqbEj /+L28nJzSF0QfwbMH/iAR1OxlR4BUOMDSEjn7msToOhfYrK7Ng0QNQNqLgcs3k62zG44 vsPUcYfsXoBpmGWCOLWx2Oyhk4kASWGlaQf6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=tdrE6GEmskoknA8TxFcG1QfY3U4XavWU8s4x40KDVHY=; b=iJJx8k4NVwDS1lc0BXLnUUzJjrV7eUrFsPrcsCnrLX5ALiWkvBgafTI5/o16DHNY0Z bYWPI/WQooDPi9Vgzm/xqtTP+Qsqfhg1RB8xlY3bCAu8DgItpEcGqIVEE71zw0qobEAI W7QWc9gar58yZ4Vbk+IMTbXTWHbPtJJWkIj18RthaEdc9N1QtkuOPLnOM4gihI4CBymZ N32BjwGBavtiLVjVDIBUjScVIRz3G1tejIC4Sc1UwUWXKpzXcFDD5LfcjwJlRVMhkYgr mHga9kGxOhasmotavNgNwDT1UDg8+DTjfeFRqpB3F3yOBMPBcYDIgYLyu9FOZXpK8HEl dicw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532LF2LxJbm+h0Arq/2q6mUT7vy6VeIUpNIMv4hDzpyjWu9APXPS fdqPd/Og8MVaxGqeNFbaezk= X-Google-Smtp-Source: ABdhPJz0bT2NjZ/N75AeG+D/Ep9YdLO8ixAMTH43Cfkzd2PdqoPqU5/SmgJusOakI0yPTSar5XJSqA== X-Received: by 2002:aca:5cc5:: with SMTP id q188mr1715772oib.10.1597417090394; Fri, 14 Aug 2020 07:58:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1c78:: with SMTP id s24ls2042592otg.9.gmail; Fri, 14 Aug 2020 07:58:07 -0700 (PDT) X-Received: by 2002:a05:6830:614:: with SMTP id w20mr2267458oti.283.1597417087024; Fri, 14 Aug 2020 07:58:07 -0700 (PDT) X-Original-Sender: bjoern.lippert-aoCR0UM+3MJWk0Htik3J/w@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:25875 Archived-At: ------=_Part_180_303698100.1597417086306 Content-Type: multipart/alternative; boundary="----=_Part_181_1305004168.1597417086306" ------=_Part_181_1305004168.1597417086306 Content-Type: text/plain; charset="UTF-8" I have a markdown file that I want to convert to RST. The clue is, that this *markdown* file already contains valid RST (i.e. nested directives), i.e. .. note:: .. include:: /path/to/file Some static text also with RST-valid indention 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? Kind regards BJ -- 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/d88ec922-7c61-4cbe-8599-b435540c6a9bn%40googlegroups.com. ------=_Part_181_1305004168.1597417086306 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have a markdown file that I want to convert to RST.
The clue is, that= this markdown file already contains valid RST (i.e. nested directiv= es), i.e.

.. note::

   .. include:: /path/to/file
<= font face=3D"Courier New">
=    Some static text also with RST-valid indention 

How to tell pandoc while transforming the RST-enrich= ed markdown to RST to keep this indention? It seems pandoc removes (left tr= im) without mercy. Is there a toggle or plugin I missed? Or could I add som= e magic-markup in the source markdown?

Kind regard= s
BJ

--
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/d88ec922-7c61-4cbe-8599-b435540c6a9bn%40googlegroups.= com.
------=_Part_181_1305004168.1597417086306-- ------=_Part_180_303698100.1597417086306--