How to link to a named anchor in Multimarkdown?

后端 未结 7 1570
醉酒成梦
醉酒成梦 2020-11-28 17:21

I have come across a number of mentions of MultiMarkdown\'s support for internal links / named anchors but I am unable to find a single example of how to actually do it.

相关标签:
7条回答
  • 2020-11-28 17:47

    If you have headers in the markdown files, you can directly link them in the file.

    Markdown Header -

    ## The Header

    this will generate an implicit id #the-header (replace internal spaces with hyphens and make lowercase).

    To navigate to this id, you can create the link like this:

    [Link to Header](#the-header)

    This is equivalent to:

    <a href="#the-header">Link to Header</a>

    Please note the reference's name is a lower-case #header.

    0 讨论(0)
提交回复
热议问题