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

  1. Wex
    Posted 2 years 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?


  2. Stephen Harris
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #


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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Markdown
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic