obsidian-export/tests/testdata/input/main-samples/obsidian-wikilinks.md
Nick Groenen 6033407266
new: support links referencing headings
Previously, links referencing a heading (`[[note#heading]]`) would just
link to the file name without including an anchor in the link target.
Now, such references will include an appropriate `#anchor` attribute.

Note that neither the original Markdown specification, nor the more
recent CommonMark standard, specify how anchors should be constructed
for a given heading.

There are also some differences between the various Markdown rendering
implementations.

Obsidian-export uses the [slug] crate to generate anchors which should
be compatible with most implementations, however your mileage may vary.

(For example, GitHub may leave a trailing `-` on anchors when headings
end with a smiley. The slug library, and thus obsidian-export, will
avoid such dangling dashes).

[slug]: https://crates.io/crates/slug
2021-01-04 21:45:00 +01:00

395 B

Link to pure-markdown-examples and the same Pure-Markdown-Examples.

Link to pure-markdown-examples.

Link to pure-markdown-examples#Heading 1.

Link to pure-markdown-examples#Heading 1.

Link within backticks: [[pure-markdown-examples]]

Within a code block:
[[pure-markdown-examples]]

[[unclosed link

Regular text.