1.0.0 • Published 9 years ago

mdast-cross-reference v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

mdast-cross-reference

A poor man's LaTeX cross-referencing system in Markdown.

This detects <a name='foo'></a> anchors and references to them like [](#foo), and rewrites them to numbered section references.

Rewrites

1. Foo bar
  1. <a name='baz'></a> Baz
2. <a name='bar'></a>This refers to [](#baz)
3. And this refers to [](#bar)

To

1.  Foo bar
    1.  <a name='baz'></a> Baz
2.  <a name='bar'></a>This refers to [1.1](#baz)
3.  And this refers to [2](#bar)