CommonMark writer: avoid excess blank lines at end of output.
This commit is contained in:
parent
3752298d91
commit
1ad9679dc9
2 changed files with 1 additions and 9 deletions
|
@ -86,7 +86,7 @@ blocksToCommonMark opts bs = do
|
|||
then Just $ writerColumns opts
|
||||
else Nothing
|
||||
nodes <- blocksToNodes opts bs
|
||||
return $
|
||||
return $ T.stripEnd $
|
||||
nodeToCommonmark cmarkOpts colwidth $
|
||||
node DOCUMENT nodes
|
||||
|
||||
|
|
|
@ -71,8 +71,6 @@ My:thumbsup:emoji:heart:
|
|||
| orange | 1.12 |
|
||||
|
||||
The caption.
|
||||
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -80,8 +78,6 @@ The caption.
|
|||
“hi”
|
||||
^D
|
||||
"hi"
|
||||
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -89,8 +85,6 @@ The caption.
|
|||
"hi"
|
||||
^D
|
||||
“hi”
|
||||
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -98,8 +92,6 @@ The caption.
|
|||
"hi"
|
||||
^D
|
||||
"hi"
|
||||
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue