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
I am trying to produce an HTML file which contains one-line examples with a judgement. If I correctly understand, the following markdown syntax will work:
::: ex
^* This traditionally signals ungrammaticality.
:::
However, pandoc throws an error on lua when processing the markdown file, as follows:
Error running filter configuration/pandoc-ling/pandoc-ling.lua:
configuration/pandoc-ling/pandoc-ling.lua:607: attempt to index a nil value (field '?')
stack traceback:
configuration/pandoc-ling/pandoc-ling.lua:607: infunction'pandocMakeSingle'
configuration/pandoc-ling/pandoc-ling.lua:527: infunction'pandocMakeExample'
configuration/pandoc-ling/pandoc-ling.lua:256: infunction'processDiv'
Error: pandoc document conversion failed with error 83
Here I put an Rmarkdown example with its subsidiary R packages, bookdown. The contents are exactly same as pandoc's markdown, except what I wrote in YAML section.
---
author: Masataka OGAWA
title: Using pandoc-ling for HTML
output:
bookdown::html_document2:
pandoc_args:
- --lua-filter=configuration/pandoc-ling/pandoc-ling.lua
## No problem with pdf-producing
bookdown::pdf_document2:
pandoc_args:
- --lua-filter=configuration/pandoc-ling/pandoc-ling.lua
---
These two examples throw an error when I produce an HTML file:
```
Error running filter configuration/pandoc-ling/pandoc-ling.lua:
configuration/pandoc-ling/pandoc-ling.lua:607: attempt to index a nil value (field '?')
stack traceback:
configuration/pandoc-ling/pandoc-ling.lua:607: in function 'pandocMakeSingle'
configuration/pandoc-ling/pandoc-ling.lua:527: in function 'pandocMakeExample'
configuration/pandoc-ling/pandoc-ling.lua:256: in function 'processDiv'
Error: pandoc document conversion failed with error 83
```
::: ex
^* This traditionally signals ungrammaticality.
:::
::: ex
a. ^* This traditionally signals ungrammaticality.
:::
<!--
This commented-out example works fine.
::: ex
a. ^* This traditionally signals ungrammaticality.
d. However, such long sequences sometimes lead to undesirable effects in the layout.
:::
-->
Note but that I can produce a PDF file without any problem with the Rmd file above, as shown in the following screen capture.
I am trying to produce an HTML file which contains one-line examples with a judgement. If I correctly understand, the following markdown syntax will work:
::: ex ^* This traditionally signals ungrammaticality. :::
However, pandoc throws an error on lua when processing the markdown file, as follows:
The problem looks similar to the issue on the following link, but I cannot work around by myself since I am not familiar with lua...
https://stackoverflow.com/q/12153537/10215301
What am I missing...?
MWE
Here I put an Rmarkdown example with its subsidiary R packages,
bookdown
. The contents are exactly same as pandoc's markdown, except what I wrote in YAML section.Note but that I can produce a PDF file without any problem with the Rmd file above, as shown in the following screen capture.
Environment
Environment
pandoc-ling: v1.4
pandoc: v2.11.4
OS: Windows 10 x64 (build 19042)
The text was updated successfully, but these errors were encountered: