- Feat: match longest definition name first. #3
- Feat: add static
BiMark.findTextNodes
. - Fix: Auto escape references in link. #2
- Fix: import path with file extension.
- Fix: export
BiParserError/BiDocError
.
- Feat: add
BiDocError/BiParserError.position
.
- Feat: optimize error class, add
BiParserError
andBiDocError
.
- Feat: add
Point.offset
. - Feat: add
Reference.id
.
- Breaking Change: extract type
EscapedReference
fromReference
.- Escaped reference will not check if the definition exists:
[[!any]]
- Escaped reference will not check if the definition exists:
- Breaking Change: add
BiDoc.escaped
to get escaped references.- You could not use
name2def/id2def.refs
to get escaped references any more.
- You could not use
- Feat: explicit reference support
[[@name]]
. - Feat: add
BiMark/BiML.findTextNodes
. - Feat: add
BiMark/BiML.collectDefs
to get the newly collected definitions. - Feat: add
BiMark/BiML.collectRefs
to get the newly collected references. - Feat: add
BiML.BiMLCollectOptions
. - Fix: definition/reference position.
- Fix:
Point.column
must be greater than 0.
- Add interface
Reference
. - Add
BiDoc.purge
. - Breaking Change:
Definition.refs
will beReference[]
instead ofstring[]
. - Breaking Change:
RefIdGenerator
is(ref: Reference) => string
. - Breaking Change:
RefRenderer
is(ref: Reference) => string
. - Breaking Change: re-write
BiParser
. - Breaking Change: rename
BiDoc.collectDefinition
toBiDoc.collectDefinitions
. - Fix: escaped reference for alias will be rendered as the alias instead of the name.
- Language specific characters are allowed in the name/alias/id of a definition.
- Characters allowed in the name/alias of a definition:
[^$&+,/:;=?!@"'<>#%{}|\\^~[\]`\n\r]
. - Characters allowed in the id of a definition:
[^$&+,/:;=?!@ "'<>#%{}|\\^~[\]`\n\r]
.
- Characters allowed in the name/alias of a definition:
- BiML will collect/render
li
elements by default.
- Fix definition position. Add more tests for this.
- Fix ESM module resolution.
- Fix ESM module resolution.
- Add
BiDoc
/BiParser
class. - Add
out.html
option inrender
function. - Add
BiML
to parse & render HTML. - Optimize code.
- Add
ref.html
option inrender
function.
The initial release.
BiMark
collect
to collect definitions from markdown documents.render
to render a markdown document.singleFile
to collect and render a single file.getReverseRefs
to get reverse references of a definition.