html - How to go to a certain point of a different document in a .md file? -
i trying go second part in below mentioned .md file. file myfile.md. contents are:
## first part (an image) ## second part (an image)
i trying access html file using command
<a href="some-url/myfile#second-part">second part</a>.
however, not pointing second part pointing somewhere below that. can tell me how correct it?
experimenting, found solution using <div…/>
obvious solution place own anchor point in page wherever like, thus:
<a name="abcde"/>
before and
</a>
after line want 'link' to. markdown link like:
[link text](#abcde)
anywhere in document takes there.
the <div…/>
solution inserts "dummy" division add id property, , potentially disruptive page structure, <a name="abcde"/>
solution ought quite innocuous.
(ps: might ok put anchor in line wish link to, follows:
## <a name="head1"/>heading one</a>
please refer question : how link part of same document in markdown?
Comments
Post a Comment