public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to convert from OPML to Markdown without escaping the Markdown
@ 2019-04-11 17:39 Patrick Kenny
       [not found] ` <7dd34cfd-e19f-47b2-a20c-0e62f3901ba4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Patrick Kenny @ 2019-04-11 17:39 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1379 bytes --]



I'm relatively new to Pandoc and hoping someone can point me in the right 
direction.


I created an outline in some software that exports to OPML.  This outline 
contains HTML tags and Markdown (for example, lists made of *).


So, when I export the outline to OPML, it looks like this:


 <outline text="List title">

   <outline text="* Item 1" /> 

   <outline text="* Item 2" /> 

  <outline text="* Item 3" />


I converted from OPML to Markdown like this:


pandoc -o -s myfile.md myfile.opml --from=opml --to=commonmark

However, this results in the markdown being escaped:


List title

\* Item 1

\* Item 2

\* Item 3


HTML tags are escaped similarly.


How can I turn this escaping off? I want the markdown in the OPML file to 
be preserved (treated as markdown) upon conversion to markdown.


-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7dd34cfd-e19f-47b2-a20c-0e62f3901ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 16180 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-17 11:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 17:39 How to convert from OPML to Markdown without escaping the Markdown Patrick Kenny
     [not found] ` <7dd34cfd-e19f-47b2-a20c-0e62f3901ba4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-11 23:58   ` John MacFarlane
     [not found]     ` <yh480kef68xffn.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-04-12  9:41       ` Patrick Kenny
     [not found]         ` <1cc15235-38f9-49f9-a89b-bd37bf331ccb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-04-12 15:06           ` John MacFarlane
     [not found]             ` <m2mukvb6va.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-04-12 16:26               ` Patrick Kenny
     [not found]                 ` <CAE3gDhw7PXHZPKu8SQH__ZV6xB2xv89ZOEx0B3Gd8pZ=-sB7pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-04-12 19:35                   ` BP Jonsson
2019-04-13 10:38               ` BP Jonsson
     [not found]                 ` <bdf2bba3-35f6-4358-8340-550b9f2b6cac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-04-13 10:59                   ` Benct Philip Jonsson
2019-04-13 11:17                   ` Benct Philip Jonsson
     [not found]                     ` <0605902c-ffad-1916-b5af-bf96041dc266-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-04-17 11:21                       ` Patrick Kenny
2019-04-12  8:41   ` BPJ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).