From 3afd698984f9ec3fcb9b16e5d6c12ea4a23dfb53 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Mar 2016 12:55:11 +0100 Subject: Officially support ID prefixes --- NEWS | 2 ++ README.md | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index b373221..a0703d2 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ * Remove deprecated convertUnderline option. +* Officially support ID prefixes. + * Generated IDs no longer insert a hyphen after the ID prefix. * The default ID prefix is now the empty string rather than a random number diff --git a/README.md b/README.md index 05f19ed..00fa1b2 100644 --- a/README.md +++ b/README.md @@ -376,6 +376,11 @@ Converts the source document to HTML. * `ignoreEmptyParagraphs`: by default, empty paragraphs are ignored. Set this option to `false` to preserve empty paragraphs in the output. + + * `idPrefix`: + a string to prepend to any generated IDs, + such as those used by bookmarks, footnotes and endnotes. + Defaults to an empty string. * Returns a promise containing a result. This result has the following properties: -- cgit v1.2.3