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.