diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/DocumentConverter.java | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -201,6 +201,10 @@ Methods: * `DocumentConverter preserveEmptyParagraphs()`: by default, empty paragraphs are ignored. Call this to preserve empty paragraphs in the output. +* `DocumentConverter idPrefix(String idPrefix)`: + A string to prepend to any generated IDs, + such as those used by bookmarks, footnotes and endnotes. + #### `Result<T>` Represents the result of a conversion. Methods: diff --git a/src/main/java/org/zwobble/mammoth/DocumentConverter.java b/src/main/java/org/zwobble/mammoth/DocumentConverter.java index 94fb09c..b523bba 100644 --- a/src/main/java/org/zwobble/mammoth/DocumentConverter.java +++ b/src/main/java/org/zwobble/mammoth/DocumentConverter.java @@ -37,6 +37,10 @@ public class DocumentConverter { this.options = options; } + /** + * A string to prepend to any generated IDs, + * such as those used by bookmarks, footnotes and endnotes. + */ public DocumentConverter idPrefix(String idPrefix) { return new DocumentConverter(options.idPrefix(idPrefix)); } |
