diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-08-30 17:40:02 +0300 |
---|---|---|
committer | vmishenev <vad-mishenev@yandex.ru> | 2021-08-30 18:54:19 +0300 |
commit | 70448a0797202f91778c35ecd6adf4b36c95897d (patch) | |
tree | 948409a1f259fd37e06d92a28136b55fbb496646 /plugins/gfm/src/test | |
parent | a74b3c1cabde1dad3e91f804a89a90398dba1932 (diff) | |
download | dokka-70448a0797202f91778c35ecd6adf4b36c95897d.tar.gz dokka-70448a0797202f91778c35ecd6adf4b36c95897d.tar.bz2 dokka-70448a0797202f91778c35ecd6adf4b36c95897d.zip |
Escape text for GFM
Diffstat (limited to 'plugins/gfm/src/test')
-rw-r--r-- | plugins/gfm/src/test/kotlin/renderers/gfm/SimpleElementsTest.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/gfm/src/test/kotlin/renderers/gfm/SimpleElementsTest.kt b/plugins/gfm/src/test/kotlin/renderers/gfm/SimpleElementsTest.kt index ee156c7f..b4af12b2 100644 --- a/plugins/gfm/src/test/kotlin/renderers/gfm/SimpleElementsTest.kt +++ b/plugins/gfm/src/test/kotlin/renderers/gfm/SimpleElementsTest.kt @@ -204,4 +204,17 @@ class SimpleElementsTest : GfmRenderingOnlyTestBase() { assertEquals(expect, renderedContent) } + @Test + fun escapeText() { + val page = testPage { + text( + "<b>a</b>", + ) + } + val expect = + "//[testPage](test-page.md)\n\n<b>a</b>" + CommonmarkRenderer(context).render(page) + assertEquals(expect, renderedContent) + } + } |