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 have some markdown in obsidian that contains <u>text</u> html underline tags. When exporting to .docx format, these underlines seem to be ignored. I created a pandoc lua filter to converts these tags to pandoc underlines, and included the filter in my "extra arguments" field in enhancing exporter for the docx format with "--lua-filter=". Here's the code:
local function underline_filter (elem)
if elem.tag == "u" then
return pandoc.Underline(elem.content)
end
end
return {
{ Inline = underline_filter },
}
Although this should work. It does not. I'm at a loss for next steps here. Does anyone have some idea about how to get the html underline tags to be converted to underlines in docx? What am I missing?
The text was updated successfully, but these errors were encountered:
I have some markdown in obsidian that contains
<u>text</u>
html underline tags. When exporting to .docx format, these underlines seem to be ignored. I created a pandoc lua filter to converts these tags to pandoc underlines, and included the filter in my "extra arguments" field in enhancing exporter for the docx format with "--lua-filter=". Here's the code:Although this should work. It does not. I'm at a loss for next steps here. Does anyone have some idea about how to get the html underline tags to be converted to underlines in docx? What am I missing?
The text was updated successfully, but these errors were encountered: