Skip to content

Commit

Permalink
add test for more complex italics
Browse files Browse the repository at this point in the history
  • Loading branch information
notslang committed Mar 30, 2016
1 parent 8ee1d59 commit 263e1ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,13 @@ describe 'inline grammar', ->
tidyMdSnippet('*italic*').should.equal('_italic_')
tidyMdSnippet('_italic_').should.equal('_italic_')

it 'should handle complex italic text (according to commonmark)', ->
tidyMdSnippet('''
end_of_line _(supported values: `lf`, `crlf`)_
''').should.equal('''
end_of_line _(supported values: `lf`, `crlf`)_
''')

it 'should convert code tags', ->
tidyMdSnippet('<code>code</code>').should.equal('`code`')

Expand Down

0 comments on commit 263e1ed

Please sign in to comment.