W3C home > Mailing lists > Public > public-ixml@w3.org > October 2022

Re: A quick experiment with markdown

From: Norm Tovey-Walsh <norm@saxonica.com>
Date: Mon, 24 Oct 2022 10:18:14 +0100
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: public-ixml@w3.org
Message-ID: <m2v8o94lru.fsf@saxonica.com>
Steven Pemberton <steven.pemberton@cwi.nl> writes:
> I did a little more work on it.

Interesting. I happened to have a Markdown file for a sourdough crumpet
recipe in /tmp, so I pointed it at that.

It didn’t like this paragraph:

  You can use SR Flour, just add 1/2 teaspoon baking powder in place of
  1 1/2 teaspoons of baking powder.

The leading 1 on the second line confused it:

  <fail xmlns:ixml="http://invisiblexml.org/NS" ixml:state="failed">
    <permitted>#A, ~['`#*+->'; Nd; #A]</permitted>

I don’t think newlines in Markdown prose are supposed to be literal.
Assuming newlines before and after, I think:

  Some text.
  Some more text.

should be

  <p>Some text.
  Some more text.</p>

and not

  <p>Some text.<br/>
  Some more text.</p>

Though I suppose that depends on who’s Markdown definition your parsing.
I mostly rely on CommonMark because it has, you know, a specification!

                                        Be seeing you,

Norm Tovey-Walsh

Received on Monday, 24 October 2022 09:24:42 UTC

This archive was generated by hypermail 2.4.0 : Monday, 24 October 2022 09:24:43 UTC