public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Horizontal rule immediately after text
@ 2016-04-26 17:37 John Muccigrosso
       [not found] ` <7d2caf01-890c-4686-8ec3-4737092f0457-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: John Muccigrosso @ 2016-04-26 17:37 UTC (permalink / raw)
  To: pandoc-discuss


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

While messing around with some of the options over on the "Syntax for divs" 
issue in GitHub <https://github.com/jgm/pandoc/issues/168>, I ran into some 
unexpected behavior with inserting horizontal rules immediately after text. 
All of the following create horizontal rules when preceded by a blank line:

___
***
---

They'll also work with spaces inserted between the characters. Of course if 
the three hyphens immediately follow text, they create a setext-style 
header. However the other two sequences shouldn't. Nor should any of the 
forms with inserted spaces. And both the other sequences and the three 
sequences with inserted spaces should also create a horizontal rule. Yet 
none of them do, unless they are preceded by a blank line. That is, none of 
the following generate horizontal rules under pandoc unless the "from" 
format is commonmark:
Hi
***

Hi
___

Hi
- - -

Hi
* * *

Hi
_ _ _


Isn't this standard markdown formatting?

-- 
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/7d2caf01-890c-4686-8ec3-4737092f0457%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2016-04-27  3:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 17:37 Horizontal rule immediately after text John Muccigrosso
     [not found] ` <7d2caf01-890c-4686-8ec3-4737092f0457-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-26 18:31   ` John MACFARLANE
     [not found]     ` <20160426183115.GA34351-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2016-04-26 19:24       ` John Muccigrosso
     [not found]         ` <77827528-e1da-4ca8-9878-67513c7ba0d5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-26 22:17           ` Daniel Staal
     [not found]             ` <5563EB9704768F3DF0386FE4-3uUC32ntyBiNj9Bq2fkWzw@public.gmane.org>
2016-04-27  3:11               ` John Muccigrosso

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