Skip to content

Commit

Permalink
added option to configure soft line breaks in Markdown - para.markdow…
Browse files Browse the repository at this point in the history
…n_soft_break = '<br>'
  • Loading branch information
albogdano committed Sep 11, 2021
1 parent 7755c98 commit 6d9fa6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions para-core/src/main/java/com/erudika/para/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ public static String base64dec(String str) {
private static MutableDataHolder getMarkdownOptions() {
return new MutableDataSet()
.set(HtmlRenderer.ESCAPE_HTML, true)
.set(HtmlRenderer.SOFT_BREAK, Config.getConfigParam("markdown_soft_break", "<br>"))
.set(HtmlRenderer.AUTOLINK_WWW_PREFIX, "https://")
.set(EmojiExtension.USE_IMAGE_TYPE, EmojiImageType.UNICODE_FALLBACK_TO_IMAGE)
// for full GFM table compatibility add the following table extension options:
Expand Down

0 comments on commit 6d9fa6a

Please sign in to comment.