From 9f075d3f94dc003fc5259c1d6a0ba15a9aecc325 Mon Sep 17 00:00:00 2001 From: AlexanderSergan Date: Tue, 11 Jun 2019 10:40:59 +0300 Subject: [PATCH] Test cases for em/strong at start and end of word; --- test/fixtures/markdown-it/smartquotes.txt | 42 ++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/test/fixtures/markdown-it/smartquotes.txt b/test/fixtures/markdown-it/smartquotes.txt index d46f419..122268a 100644 --- a/test/fixtures/markdown-it/smartquotes.txt +++ b/test/fixtures/markdown-it/smartquotes.txt @@ -149,4 +149,44 @@ _**example**_

example

example

example

-. \ No newline at end of file +. + +Should render correctly em/strong at the middle of word: +. +fo***ob***ar + +fo_**ob**_ar + +fo**_ob_**ar +. +

foobar

+

foobar

+

foobar

+. + +Should render correctly em/strong at start of word: +. +***foo***bar + +_**foo**_bar + +**_foo_**bar +. +

foobar

+

_foo_bar

+

**foo**bar

+. + +Should render correctly em/strong at the end of word: +. +foo***bar*** + +foo_**bar**_ + +foo**_bar_** +. +

foobar

+

foo_bar_

+

foo**bar**

+. +