-
In my custom Pod writer I have some custom extensions which control how elements which have no counterpart in Pod, like SmallCaps, Strikeout, Underline, Subscript, Superscript and mark (which is a class on a Span) are rendered, basically four alternatives:
Naturally the custom extensions for selecting these alternatives are mutually exclusive and I want to check if they are set and that they are not contradicting each other rather early and only once because checking every time each of the functions for each of the element types is called is time and resource consuming and makes the source code cluttered. Would the Or is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There's a similar issue in pandoc, where we have the extensions
The |
Beta Was this translation helpful? Give feedback.
There's a similar issue in pandoc, where we have the extensions
wikilinks_title_before_pipe
andwikilinks_title_after_pipe
. We take the easy way out, the commit which introduced the extensions says:The
Pandoc
function is a good place to check for such conflicts. Custom writers start at the root, as that gives maximum control over the rendering process.