Update output for HTML5 (Lib branch) #58

Closed
michelf opened this Issue Jan 22, 2013 · 4 comments

Projects

None yet

2 participants

@michelf
Owner
michelf commented Jan 22, 2013

Two things in the current output would need to be refreshed for HTML5. Here's what need to be done:

  • Footnotes: Currently using the rev attribute for back-links. This attribute is no longer in HTML5. I'd suggest rel="footnote-ref".
  • Tables: Currently using the align attribute for cell alignment. This attribute is no longer in HTML5. I'm not sure what to suggest. Do we need to update this?

I'd like to fix these two before we get out of beta in the lib branch.

@waylan
waylan commented Jan 24, 2013

Regarding the footnotes, this is how I addressed it in Python-Markdown. See the commit message for an explanation.

@michelf
Owner
michelf commented Jan 24, 2013

@waylan class=footnote-ref and class=footnote-backref are indeed better. I forgot that HTML5 also restricted allowable values for the rel attribute.

@michelf
Owner
michelf commented Jan 24, 2013

Lib branch updated to use footnote-ref and footnote-backref classes in the output. a0724cd

@michelf
Owner
michelf commented Apr 7, 2013

Lib branch will keep using the align attribute for table cells, unless the user has set a class himself through the parser's configuration. This way with a default style sheet things will be aligned correctly and you'll still be able to affect the style though CSS using a selector matching it (td[align="right"]); using a style="text-align:right" attribute would make that difficult.

@michelf michelf closed this Apr 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment