public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Bug? Text before HTML comment output as Plain
@ 2010-11-09 15:40 BP Jonsson
       [not found] ` <4CD96B56.2060905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: BP Jonsson @ 2010-11-09 15:40 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

The HTML writer outputs any text in a markdown paragraph
which precedes an HTML comment as Plain text rather than
Para; see markdown example, native and HTML output below,
where the beginning of the second non-empty line before the
comment ends up outside the Para/<p>!

Is this a bug or a feature?  If the latter, what purpose
does it serve?

/bpj

----

Ut enim ad minim veniam

Duis aute irure <!-- FOO --> dolor in reprehenderit

Excepteur sint occaecat cupidatat non proident

----

Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
[ Para [Str "Ut",Space,Str "enim",Space,Str "ad",Space,Str 
"minim",Space,Str "veniam"]
, Plain [Str "Duis",Space,Str "aute",Space,Str "irure"]
, RawHtml "<!-- FOO --> "
, Para [Str "dolor",Space,Str "in",Space,Str "reprehenderit"]
, Para [Str "Excepteur",Space,Str "sint",Space,Str 
"occaecat",Space,Str "cupidatat",Space,Str "non",Space,Str 
"proident"] ]

----

<p
 >Ut enim ad minim veniam</p
 >Duis aute irure<!-- FOO --> <p
 >dolor in reprehenderit</p
 ><p
 >Excepteur sint occaecat cupidatat non proident</p
 >


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

end of thread, other threads:[~2010-11-10  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 15:40 Bug? Text before HTML comment output as Plain BP Jonsson
     [not found] ` <4CD96B56.2060905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-10  2:35   ` John MacFarlane
     [not found]     ` <20101110023523.GB22881-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-10  6:52       ` John MacFarlane

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