emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A simple Lua filter for Pandoc


From: Max Nikulin
Subject: Re: A simple Lua filter for Pandoc
Date: Tue, 4 Jan 2022 21:05:54 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 04/01/2022 17:14, Juan Manuel Macías wrote:

Very often I need to convert docx documents to Org. ...

   local chars = {["/"] = "\\slash{}", ["*"] = "\\lowast{}", ["<"] = "\\lt{}",
          [">"] = "\\gt{}", ["†"] = "\\dagger{}", [utf8.char(0x00A0)] = 
"\\nbsp{}"}
...
pandoc -f markdown -t org --lua-filter=entities.lua <<< $str

Ideally it should be done pandoc and only if it causes incorrect parsing of org markup. NBSP, probably, should be replaced by some exporters, I do not think, it is a problem e.g. in HTML files.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]