I've tried this:
return {
{
Para = function (elem)
if elem.content[1].text == "{{helloworld}}" then
return pandoc.RawBlock('html','
abc
')
else
return elem
end
end,
}
}
but that only gets rid of {{helloworld}}, it doesn't replace it with
anything. Sadly this doens't work for "==", i.e. those don't disappear.
On Monday, December 5, 2022 at 6:49:08 p.m. UTC+1 - wrote:
> I've been trying to replace markdown/Obsidian highlights "==" either with
> something that LaTeX can use e.g. \hl or just delete it/replace it with
> nothing, but I can't figure out how to do this.
>
> I've tried this:
> function Str (str)
> str.text = string.upper(str.text)
> return str
> end
>
> But I can't even figure out where I'm meant to put my own text?
>
> How do I rpelace == with " "?
>
> Thanks!
>
--
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3ae58adb-8789-4398-8ab0-fe1e6928e292n%40googlegroups.com.