Hello! Good job with the package. I'm a new contributor and I think that the filter gives an error with whole-line ranges when I tried it out of the box.
I set up the pandoc-emphasize-code binary with:
wget -O ~/Downloads/ 'https://github.com/owickstrom/pandoc-emphasize-code/releases/download/v0.2.3/pandoc-emphasize-code-osx-ghc8-pandoc-1-19.tar.gz'
tar -xvzf ~/Downloads/pandoc-emphasize-code-osx-ghc8-pandoc-1-19.tar.gz
I set up a file ~/Downloads/temp.md with the example in the Readme:
```{.haskell emphasize=2-2,3:3-3:12}
myFunc = do
newStuffHere
andThisToo notThis
notSoRelevant
```
Then I run:
$ pandoc --filter ~/Downloads/pandoc-emphasize-code -o ~/Downloads/temp.html ~/Downloads/temp.md
pandoc-emphasize-code: user error (Invalid position: 2)
Error running filter ~/Downloads/pandoc-emphasize-code:
Filter returned error status 1
If I remove the first range and the markdown file looks like:
```{.haskell emphasize=3:3-3:12}
myFunc = do
newStuffHere
andThisToo notThis
notSoRelevant
```
Then pandoc makes the output without problems.
Hello! Good job with the package. I'm a new contributor and I think that the filter gives an error with whole-line ranges when I tried it out of the box.
I set up the
pandoc-emphasize-codebinary with:I set up a file
~/Downloads/temp.mdwith the example in the Readme:Then I run:
If I remove the first range and the markdown file looks like:
Then
pandocmakes the output without problems.