WordPress.org

Ready to get started?Download WordPress

Forums

WP-Markdown
converted to markdown when there are nested HTML tags (3 posts)

  1. Wex
    Member
    Posted 1 year ago #

    I'm trying to nest a link inside of some <code>. Unfortunately, this plugin keeps converting the HTML into markdown:

    <code>Code <a href="#">Link</a></code>

    This has the obvious undesired consequence of printing out the HTML rather than making the text into a link. This appears to be a bug even in this editor, so hopefully my post was clear enough. Is there a fix for this?

    http://wordpress.org/extend/plugins/wp-markdown/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Wex,

    Are you trying to have a link in and amongst some code? If so, I'm afraid I don't think that's possible with markdown...

    What might work (completely untested) is to nest it all inside a div element (since Markdown won't work inside div elements unless you tell it to explicitly.) Then you can use HTML to achieve what you're after.

    Hope that helps!

  3. Wex
    Member
    Posted 1 year ago #

    Stephen,

    It looks like my < tags are being converted to &lt still.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic