Le 2007-05-02 à 17:24, Allan Odgaard a écrit :

Seeing how no-one should send application/xhtml+xml to the browser [1], and development of the HTML standard is again happening [2], it would make sense to have Markdown.pl default to HTML tags.

Maybe too late to change a default though.

I wouldn't change the default for the reasons John has enumerated. But I wouldn't remove the configuration option so easily either so people can still choose the HTML 4 syntax if they like. HTML 5 accepts both syntaxes as conformant in the current draft, a good middle ground in my opinion.


How does PHP Markdown and other implementations deal with this issue?

In the PHP Markdown file, there is a setting for this:

    # Change to ">" for HTML output
    define( 'MARKDOWN_EMPTY_ELEMENT_SUFFIX',  " />");

You can also set it programatically on a per-parser basis for when you instantiate your own parser object:

    $parser = new Markdown_Parser;
    $parser->empty_element_suffix = ">";

    $html = $parser->transform($text);



Michel Fortin
[EMAIL PROTECTED]
http://www.michelf.com/


_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to