pandoc-markdown-book-template icon indicating copy to clipboard operation
pandoc-markdown-book-template copied to clipboard

Pandoc error

Open ricardoalcocer opened this issue 7 years ago • 5 comments

Hi.

I'm getting this error:

pandoc -S --toc --epub-embed-font='fonts/*.ttf' -o book.epub metadata.txt contents.markdown
--smart/-S has been removed.  Use +smart or -smart extension instead.
For example: pandoc -f markdown+smart -t markdown-smart.
Try pandoc --help for more information.

Do you have the new syntax? I'm running pandoc 2.0.4 on OSX.

ricardoalcocer avatar Mar 16 '18 19:03 ricardoalcocer

Hi! I haven't tried that out yet. Can you remove -S and see if it works? Thank you! 😄

johnpaulada avatar Mar 17 '18 03:03 johnpaulada

I took a look at the pandoc manual (https://pandoc.org/MANUAL.html), and it looks like this is a casing issue. instead of pandoc -S It should be pandoc -s. IOW, use a lower case s

dkbrummitt avatar Jul 03 '18 18:07 dkbrummitt

Awesome! That seems to be it. I think pandoc updated and it was changed because the command worked the last time I checked. Thanks!

johnpaulada avatar Jul 04 '18 00:07 johnpaulada

@dkbrummitt do you wanna make a PR to change this on the README?

johnpaulada avatar Jul 04 '18 00:07 johnpaulada

@johnpaulada I've created the PR.

felipeplets avatar Jul 13 '19 20:07 felipeplets