public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Markdown to RST conversion.
@ 2015-09-05 17:25 sam
       [not found] ` <e0993cda-83ef-494f-95c6-9bd6cd0be635-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: sam @ 2015-09-05 17:25 UTC (permalink / raw)
  To: pandoc-discuss


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

I'm having trouble understanding the conversion from markdown to rst.

I start with this in the markdown file:

---
title: Made with Pandoc
---


:data-transition-duration: 2000\
:skip-help: true

And  I want to get the following in restructured text:

================
Made with Pandoc
================


:data-transition-duration: 2000
:skip-help: true


Instead, I get this:

================
Made with Pandoc
================

| :data-transition-duration: 2000
| :skip-help: true


I thought if I backslash-escaped the colons and then added the 
"all_symbols_escapable" extension to the markdown reader, that would solve 
the issue. However, I get the same output. Does anyone have suggestions?

-- 
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/e0993cda-83ef-494f-95c6-9bd6cd0be635%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Markdown to RST conversion.
       [not found] ` <e0993cda-83ef-494f-95c6-9bd6cd0be635-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-09-08 17:45   ` John MACFARLANE
       [not found]     ` <20150908174517.GD27464-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MACFARLANE @ 2015-09-08 17:45 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

The RST reader parses field lists as definition lists.

However, the RST writer will just turn definition lists
into RST definition lists.

So, I don't see a good solution here other than using a
filter and putting the field list in a specially marked
code block.



+++ sam [Sep 05 15 10:25 ]:
>   I'm having trouble understanding the conversion from markdown to rst.
>   I start with this in the markdown file:
>   ---
>   title: Made with Pandoc
>   ---
>   :data-transition-duration: 2000\
>   :skip-help: true
>   And  I want to get the following in restructured text:
>   ================
>   Made with Pandoc
>   ================
>   :data-transition-duration: 2000
>   :skip-help: true
>   Instead, I get this:
>   ================
>   Made with Pandoc
>   ================
>   | :data-transition-duration: 2000
>   | :skip-help: true
>   I thought if I backslash-escaped the colons and then added the
>   "all_symbols_escapable" extension to the markdown reader, that would
>   solve the issue. However, I get the same output. Does anyone have
>   suggestions?
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/e0993cda-83ef-494f-
>   95c6-9bd6cd0be635%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/e0993cda-83ef-494f-95c6-9bd6cd0be635-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


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

* Re: Markdown to RST conversion.
       [not found]     ` <20150908174517.GD27464-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
@ 2015-09-10  3:13       ` sam
  0 siblings, 0 replies; 3+ messages in thread
From: sam @ 2015-09-10  3:13 UTC (permalink / raw)
  To: pandoc-discuss


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

Got it. Thanks

On Tuesday, September 8, 2015 at 12:45:33 PM UTC-5, John MacFarlane wrote:
>
> The RST reader parses field lists as definition lists. 
>
> However, the RST writer will just turn definition lists 
> into RST definition lists. 
>
> So, I don't see a good solution here other than using a 
> filter and putting the field list in a specially marked 
> code block. 
>
>
>
> +++ sam [Sep 05 15 10:25 ]: 
> >   I'm having trouble understanding the conversion from markdown to rst. 
> >   I start with this in the markdown file: 
> >   --- 
> >   title: Made with Pandoc 
> >   --- 
> >   :data-transition-duration: 2000\ 
> >   :skip-help: true 
> >   And  I want to get the following in restructured text: 
> >   ================ 
> >   Made with Pandoc 
> >   ================ 
> >   :data-transition-duration: 2000 
> >   :skip-help: true 
> >   Instead, I get this: 
> >   ================ 
> >   Made with Pandoc 
> >   ================ 
> >   | :data-transition-duration: 2000 
> >   | :skip-help: true 
> >   I thought if I backslash-escaped the colons and then added the 
> >   "all_symbols_escapable" extension to the markdown reader, that would 
> >   solve the issue. However, I get the same output. Does anyone have 
> >   suggestions? 
> > 
> >   -- 
> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To post to this group, send email to 
> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [3]
> https://groups.google.com/d/msgid/pandoc-discuss/e0993cda-83ef-494f- 
> >   95c6-9bd6cd0be635%40googlegroups.com. 
> >   For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   3. 
> https://groups.google.com/d/msgid/pandoc-discuss/e0993cda-83ef-494f-95c6-9bd6cd0be635-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >   4. https://groups.google.com/d/optout 
>
>

-- 
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/358a007a-8b37-4ff2-8ee5-106cd27eeea2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2015-09-10  3:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-05 17:25 Markdown to RST conversion sam
     [not found] ` <e0993cda-83ef-494f-95c6-9bd6cd0be635-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-09-08 17:45   ` John MACFARLANE
     [not found]     ` <20150908174517.GD27464-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
2015-09-10  3:13       ` sam

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).