Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Minor code clean-up

AuthorDaveJarvis <email>
Date2023-01-06 18:34:52 GMT-0800
Commit0b53ba76ffd3f386611e4b476d522076e1debd15
Parent8940d1f
Delta8 lines added, 1 line removed, 7-line increase
src/main/java/com/keenwrite/processors/markdown/BaseMarkdownProcessor.java
/**
* Returns the AST in the form of a node for the given Markdown document. This
- * can be used, for example, to determine if a hyperlink exists inside of a
+ * can be used, for example, to determine if a hyperlink exists inside a
* paragraph.
*
}
+ /**
+ * Ensures that subsequent processing will receive a well-formed document.
+ * That is, an XHTML document.
+ *
+ * @param html Document to transform (may contain unbalanced HTML tags).
+ * @return A well-formed (balanced) equivalent HTML document.
+ */
private String toXhtml( final String html ) {
final var document = Jsoup.parse( html );