Skip to content

Commit 9f07220

Browse files
committed
- add support for dollar token in markdown rendering
1 parent d4fb199 commit 9f07220

File tree

1 file changed

+1
-0
lines changed
  • multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/annotator

1 file changed

+1
-0
lines changed

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/annotator/AnnotatedStringKtx.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ fun AnnotatedString.Builder.buildMarkdownAnnotatedString(
295295
GFMTokenTypes.GFM_AUTOLINK -> if (child.parent == MarkdownElementTypes.LINK_TEXT) {
296296
append(child.getUnescapedTextInNode(content))
297297
} else appendAutoLink(content, child, annotatorSettings)
298+
GFMTokenTypes.DOLLAR -> append('$')
298299

299300
MarkdownTokenTypes.SINGLE_QUOTE -> append('\'')
300301
MarkdownTokenTypes.DOUBLE_QUOTE -> append('\"')

0 commit comments

Comments
 (0)