Skip to content

Add the delimiter to the context into the render-passthrough #14859

@relma2

Description

@relma2

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions