• Hi guys!

    I’m starting to write my blog posts using Markdown in Subime Text.

    But I can’t figure out how to add internal links from a TOC to different subparts of the article. I’m using Jetpack Markdown Block in Gutemberg to paste my plain text from sublime.

    The TOC is created fine, and if I hover the mouse over the link, it points correctly to each anchor.

    The problem is that the Title for each section visualy renders (displays) the code and the title. And nothing works.

    For Example

    ## DIY Guide
    [Topic 1](#topic-1)
    [Topic 2](#topic-2)
    
    ### <a></a>Topic 1
    This is part 1.
    
    ### <a></a>Topic 2
    This is part 2.

    Which renders each section title to visible code:
    <strong>"<a></a>Topic 1"</strong>

    Is there any way of creating anchors that work on WordPress using markdown?

    Thanks for your help..
    Cheers!

    • This topic was modified 5 years, 6 months ago by spacefolder.
    • This topic was modified 5 years, 6 months ago by spacefolder.
Viewing 1 replies (of 1 total)
  • Thread Starter spacefolder

    (@spacefolder)

    Well, it seems it’s a Jetpack block related issue.

    Changed
    <a name="topic-1"></a>Topic 1 for

    <a id="topic-1"></a>Topic 1, same results..

    I exported a plain html file from sublime, and pasted in on a new html block withing wordpress and everything works just fine.

    I guess I’ll have to bear with the extra step of convertin to html first before pasted into wordpress.

    Thanks anyways..
    Cheers!

    • This reply was modified 5 years, 6 months ago by spacefolder.
Viewing 1 replies (of 1 total)
  • The topic ‘Mark Down Anchors, how to?’ is closed to new replies.