Markdown links to external bookmarks

This forum is for all Flare issues related to importing files or projects.
Post Reply
AlanKearns
Sr. Propeller Head
Posts: 103
Joined: Thu Sep 11, 2014 2:06 am

Markdown links to external bookmarks

Post by AlanKearns »

When you import Markdown, Flare converts

## This is a Heading Two

to

<h2 id="this-is-a-heading-two">This is a Heading Two</h2>

If I wanted to link to that part of the topic from another imported Markdown file, what would I put in the Markdown, so that when both files were imported, the link would work?
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Markdown links to external bookmarks

Post by NorthEast »

Use [Link text](#identifier) - Flare's help has links to the supported markdown syntax:
https://www.markdownguide.org/extended- ... eading-ids
AlanKearns
Sr. Propeller Head
Posts: 103
Joined: Thu Sep 11, 2014 2:06 am

Re: Markdown links to external bookmarks

Post by AlanKearns »

That may well work within a topic, but I'm not managing to get it to work when the link is in one MD file and the destination is in another. Flare's import doesn't seem to be able to cope with that, at least not with the variants I've tried. Also, it converts the destination bookmark (as in my post above) to an ID, and that's no good for PDF output. That wants the destination to be marked with an <A name="dest_name" /> instead.
Post Reply