Reopening #12803 . @bep wanted a use case for that feature, and one of them is... Obsidian. Their internal links, in-vault images, comments, and others don't play nice with Hugo. For example:
A wikilink has the form [[Linkpage#Heading|DisplayText]] OR [[Linkpage^taggedLine|DisplayText]] where Heading, taggedLine, and DisplayText are optional. Allow double square bracket delimiters to be recognized to be processed as a different type of delimiter and handled by passthrough.
Comments are of the form %% This is a comment %%. This render hook would simply be empty.
People have cobbled together janky scripts to convert an Obsidian flavored markdown into SSG markdown before passing into Hugo, but I would like a pure Hugo solution so then we can just steal a set of Obsidian render hooks.
Reopening #12803 . @bep wanted a use case for that feature, and one of them is... Obsidian. Their internal links, in-vault images, comments, and others don't play nice with Hugo. For example:
A wikilink has the form
[[Linkpage#Heading|DisplayText]]OR[[Linkpage^taggedLine|DisplayText]]whereHeading,taggedLine, andDisplayTextare optional. Allow double square bracket delimiters to be recognized to be processed as a different type of delimiter and handled by passthrough.Comments are of the form
%% This is a comment %%. This render hook would simply be empty.People have cobbled together janky scripts to convert an Obsidian flavored markdown into SSG markdown before passing into Hugo, but I would like a pure Hugo solution so then we can just steal a set of Obsidian render hooks.