WordPress.org

Ready to get started?Download WordPress

Forums

Markdown Oddness (2 posts)

  1. marky
    Member
    Posted 10 years ago #

    I found the following Markdown syntax doesn't work in WP 1.2 with Markdown enabled:
    ![Alt text](/my/image/path.jpg "Optional Title Text")
    Specifically, the optional title text causes a problem. Some very unusual and invalid HTML is output instead of what's expected.

  2. Zarniwoop
    Member
    Posted 10 years ago #

    Change the following lines at the bottom of the plugin to do Markdown _before_ WP-texturize (!= textile) and it should work.
    add_filter('the_content', 'Markdown', 6);
    add_filter('the_excerpt', 'Markdown', 6);
    There is also a typo in _DoAnchors_reference_callback:
    if ( isset( $g_titles[$link_id] ) ) {
    (the 's' in $g_titles has been forgotten.)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.