Footnote output not valid.

Waylan Limberg waylan at
Tue Aug 7 15:43:56 EDT 2012

On Tue, Aug 7, 2012 at 2:06 PM, Michel Fortin <michel.fortin at> wrote:

> Le 2012-08-06 à 21:07, Waylan Limberg <waylan at> a écrit :


>> I just received a report [1] that the footnote output we use in

>> Python-Markdown (an exact copy of PHP Markdown Extra [3]) is not valid

>> HTML [3]. If you notice he's using HTML5. At least the footnote syntax

>> does valid on XHTML1 or HTML4. Anyway, any suggestions on how the

>> various footnote implementations want to move forward with this?


>> [1]:

>> [2]:

>> [3]:



> Another link you might want to check out:

> <>


> I'm not actually sure what to do about this. One idea is to have a master switch making all output HTML5-conformant. The real problem is that some people might be relying on the current markup, stylesheets at least. So that switch should be disabled by default, which would ensure almost no one gets HTML5 markup.


Interestingly, in Python-Markdown we have an output-format [1] switch
which can be set to various versions of HTML and/or XHTML. Although,
all HTML versions get the same output and all XHTML versions get the
same output. The only difference (right now) between HTML and XHTML
are things like `<hr>` verses `<hr />`.

Of course, following's lead, the default is XHTML, so
yeah, most will never get HTML5 output. Although, I suppose we could
easily have our footnote extension not add the `rel` and `rev`
attributes to footnotes when HTML5 is selected. Seems silly though -
to have a less semantic document because an unfinished standard has
depreciated a commonly used syntax, especially when no browser will
trip on it - just for the sake of having a document validated by an
"experimental" validator.


\X/ /-\ `/ |_ /-\ |\|
Waylan Limberg

More information about the Markdown-Discuss mailing list