You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when using the pdf (Latex/pandoc) template to export pdf file with pandoc extension pagebreak typora just can't deal with a paragraph with only strong words
An error about lua filter occurred: attempt to index a nil value (local 'command')
Somewhere says that typora just transfer a non-markdown file to pandoc, i think this is where the problem happens To Reproduce
this is a minimal sample:
---pagebreak:
break-on:
form-feed: falseplaintext-command: false---
test code
\newpage
test code
**test code**
use Typora open the file then export it with Latex/pandoc templet with an extra argument --lua-filter pagebreak.lua
then you will get the error in typora's log file or just the pop up window:
[RenderProcess 4][Error] Error running filter C:\Users\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:81: attempt to index a nil value (local 'command')
stack traceback:
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:113: in function <...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:112>
(...tail calls...)
[C]: in function 'pandoc.List.find_if'
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:119: in upvalue 'is_pb'
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:122: in function <...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:121>
[C]: in ?
[C]: in method 'walk'
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:142: in function 'Pandoc'
stack traceback:
...sers\<user name>\AppData\Roaming\pandoc\filters\pagebreak.lua:142: in function 'Pandoc'
then if remove the test code in the last line, typora can export the file correctly
also, if just convert the file in cmd with command pandoc test.md -o test.pdf --lua-filter pagebreak.lua or use a custom template in typora, the file can be exported successfully, So i think it's typora's bug
Something else:
if remove the line plaintext-command: false, no error occurs regardless of whether form-feed is true or false, but \newpage is not processed correctly at the same time
also, if remove the whole metadata block, \newpage will remain in pdf
Expected behavior
I just need to insert some pagebreak in my pdf file, however the html label doesn't work when exporting to pdf with pandoc
Desktop:
OS: Win11
Typora Version
1.9.5
Pandoc Version
3.6
The text was updated successfully, but these errors were encountered:
Searched existing issues to avoid creating duplicates.
Confirmed that it can be reproduced in built-in themes without customized css.
Searched http://support.typora.io/
Describe the bug
when using the pdf (Latex/pandoc) template to export pdf file with pandoc extension pagebreak typora just can't deal with a paragraph with only strong words
An error about lua filter occurred:
attempt to index a nil value (local 'command')
Somewhere says that typora just transfer a non-markdown file to pandoc, i think this is where the problem happens
To Reproduce
this is a minimal sample:
use Typora open the file then export it with Latex/pandoc templet with an extra argument
--lua-filter pagebreak.lua
then you will get the error in typora's log file or just the pop up window:
then if remove the test code in the last line, typora can export the file correctly
also, if just convert the file in cmd with command
pandoc test.md -o test.pdf --lua-filter pagebreak.lua
or use a custom template in typora, the file can be exported successfully, So i think it's typora's bugSomething else:
if remove the line
plaintext-command: false
, no error occurs regardless of whetherform-feed
is true or false, but\newpage
is not processed correctly at the same timealso, if remove the whole metadata block,
\newpage
will remain in pdfExpected behavior
I just need to insert some pagebreak in my pdf file, however the html label doesn't work when exporting to pdf with pandoc
Desktop:
Typora Version
Pandoc Version
The text was updated successfully, but these errors were encountered: