Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Issue with shortcodes #129

@peterfarrant

Description

@peterfarrant

Apologies for another issue - but this is a really great tool and assistance from yourself has been most helpful

I have mentioned previously we use Hugo as a static website generator which builds using goldmark markdown

It allows 'shortcodes' to enable some special features and these seem to be getting mucked up
I am using the plugin ghfm as seems closest so far to goldmark

The shortcode format has the syntax
{{< label [optional parameter] >}} [optional text depending on use] {{< /label >}}

It appears to be going well in terms of it extracts the ext for translation - this includes the shortcodes (which I think with some work on a plugin I could get excluded - but not had chance to investigate yet)
BUT when writing it out it adds an extra \ in the shortcode

So comes in for translation is:
{{< hint tip>}} hello {{< /hint >}}

When it then generates the output afterwards it writes (see the extra \ in opening and closing shortcode)
{{\< hint tip>}} hello {{\< /hint >}}

Is this intentional - or an unexpected side effect of fixing some other issue?
I cannot think of a reason for adding a \ after {{
(Short term it is easy for me to do a global search and replace on the output to remove the )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions