+ this.textMarkdownIt = this.createMarkdownIt(MarkdownService.TEXT_RULES)
+ this.enhancedMarkdownIt = this.createMarkdownIt(MarkdownService.ENHANCED_RULES)
+ }
+
+ textMarkdownToHTML (markdown: string) {
+ if (!markdown) return ''
+
+ const html = this.textMarkdownIt.render(markdown)
+ return this.avoidTruncatedLinks(html)
+ }
+
+ enhancedMarkdownToHTML (markdown: string) {
+ if (!markdown) return ''
+
+ const html = this.enhancedMarkdownIt.render(markdown)
+ return this.avoidTruncatedLinks(html)
+ }