-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text-to-kramdown-to-HTML discrepancy for dd,li with initial blank line #486
Comments
The roughly equivalent input
does not have that problem. |
Using
(note the
without So, for beauty we might want to patch the parser to remove initial |
Hmm, the same issue occurs with other list types: $ kramdown <<EOF
$ *
$
$ para
$ EOF
<ul>
<li>
<p>para</p>
</li>
</ul>
$ kramdown -o kramdown <<EOF
$ *
$
$ para
$ EOF
* para
$ kramdown -o kramdown <<EOF | kramdown
$ *
$
$ para
$ EOF
<ul>
<li>para</li>
</ul> Note that there is a (horizontal) blank required after the asterisk. |
Hmm... I would consider this a bug in the parser. According to the syntax documentation for (un)ordered lists, the first paragraph should only be a real paragraph if its text is followed by a blank line. Similar for definition lists although there the blank line must precede the definition text. I have a fix that I need to test a bit more. And there is probably also a bug in the kramdown converter when outputting list items of ul/ol or definitions of dl. |
Consider a file
test.md
with the following contents:Caution: This has (and requires) a (horizontal) blank after the colon.
Let's try kramdown on it:
As expected (by me, at least). But the
kramdown
converter output is:$ kramdown -o kramdown test.md item : para
which does not mark
para
as (explicit) paragraph.Therefore, the corresponding HTML output now misses
<p>
tags:As a consequence, test cases like
test.md
trigger text-to-kramdown-to-html failures.Update: Also occurs with other list types, see below.
The text was updated successfully, but these errors were encountered: