Skip to content

Commit

Permalink
[tests] <br> are not properly handled
Browse files Browse the repository at this point in the history
  • Loading branch information
daladim committed Dec 15, 2020
1 parent 705b8ac commit d6592d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
INPUT_DATA=$1
IMAGETAG=$2

set -e

# Test if the CLI actually works (PNG)
for i in $(ls $INPUT_DATA/*.mmd); do docker run -v $(pwd):/data $IMAGETAG -i /data/$i -o /data/$i.png -w 800; done
for i in $(ls $INPUT_DATA/*.mmd); do cat $i | docker run -i -v $(pwd):/data $IMAGETAG -o /data/$i-stdin.png -w 800; done

# Test if the CLI actually works (PDF)
for i in $(ls $INPUT_DATA/*.mmd); do docker run -v $(pwd):/data $IMAGETAG -i /data/$i -o /data/$i.pdf; done
for i in $(ls $INPUT_DATA/*.mmd); do cat $i | docker run -i -v $(pwd):/data $IMAGETAG -o /data/$i-stdin.pdf; done

# Test if the CLI actually works (SVG)
for i in $(ls $INPUT_DATA/*.mmd); do docker run -v $(pwd):/data $IMAGETAG -i /data/$i -o /data/$i.svg; done
for i in $(ls $INPUT_DATA/*.mmd); do cat $i | docker run -i -v $(pwd):/data $IMAGETAG -o /data/$i-stdin.svg; done
4 changes: 4 additions & 0 deletions test-positive/graph-with-br.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
graph TD
subgraph sub
node(Line 1<br>Line 2<br/>Line 3)
end

0 comments on commit d6592d6

Please sign in to comment.