It works perfectly! Thanks, saved me a lot of manual fixing of files
I use this Lua filter to clean up when I convert from DOCX.``````lualocal function handler (elem)-- Get the length of the contentlen = #elem.content-- Check that the content isn't emptyif 0 < len then-- Is the last child a space?if 'Space' == elem.content[len].tag then-- Remove the space (last child)elem.content:remove()-- Return a space *after* the elementreturn { elem, pandoc.Space() }endendreturn nilendreturn {{Emph = handler,Strong = handler,Strikeout = handler,SmallCaps = handler,Underline = handler,Span = handler,Link = handler,}}``````Den fre 1 juli 2022 18:37r.d.go...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <r.d.go...@gmail.com> skrev:I am a bit sloppy typing italics in my wordprocessor, and generally only turn off the italics after I hit the space at the end of the word, so I end up with markdown output that looks like this (when I convert from rtf to md):Strictly speaking the qualities that are imposed by the *logos *of a certain thing are the *activities *of the *logos*This looks ugly when I open it up in Emacs etc. I can fix these with regex replace in Emacs; but I thought pandoc had normalization by default now, which is supposed to fix these kinds of stylistic errors? I tried passing the markdown again through pandoc, to generate markdown, but it made no difference.--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bd84993b-b1cd-4128-aab2-ce1eff2c9768n%40googlegroups.com.