smapiot/pidoc

Markdown links with hash properties don't get the .md extension removed

Closed this issue · 0 comments

sbley commented

Consider this sample markdown page 01-foo.md:

More information is available on the [bar page](./02-bar.md)
More information is available in the [baz section](./02-bar.md#baz)

Expected rendered HTML:

More information is available in the <a href="./02-bar">bar page</a>
More information is available in the <a href="./02-bar#baz">baz section</a>

Actual rendered HTML:

More information is available in the <a href="./02-bar">bar page</a>
More information is available in the <a href="./02-bar.md#baz">baz section</a>

As a consequence, the second link to baz section can't be resolved.