From b4eb774896802f2bda715540a869dbf1367a68b1 Mon Sep 17 00:00:00 2001 From: Sean Lang Date: Sat, 26 Oct 2019 19:12:57 -0500 Subject: [PATCH] add test for list marker escapes in code blocks --- test/index.coffee | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/index.coffee b/test/index.coffee index 188bf14..16cdb3f 100644 --- a/test/index.coffee +++ b/test/index.coffee @@ -419,6 +419,27 @@ describe 'code blocks', -> ``` ''') + it 'should not add list marker escapes to code', -> + tidyMdSnippet(''' + ``` + Shape of data tensor: (2575, 233) + Shape of label tensor: (2575, 3) + [[ 0. 1. 0.] + [ 0. 0. 1.] + [ 0. 1. 0.] + [ 0. 1. 0.]] + ``` + ''').should.equal(''' + ``` + Shape of data tensor: (2575, 233) + Shape of label tensor: (2575, 3) + [[ 0. 1. 0.] + [ 0. 0. 1.] + [ 0. 1. 0.] + [ 0. 1. 0.]] + ``` + ''') + # NOTE: the terms "bold" & "italic" here are technically wrong... presentation # depends upon the user agent describe 'inline grammar', ->