Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape Hugo shortcodes in code blocks #94

Closed
kaushalmodi opened this issue Nov 2, 2017 · 0 comments
Closed

Escape Hugo shortcodes in code blocks #94

kaushalmodi opened this issue Nov 2, 2017 · 0 comments

Comments

@kaushalmodi
Copy link
Owner

kaushalmodi commented Nov 2, 2017

See:

Hugo will automatically render this in Markdown:

```md
{{</* figure src="/images/org-mode-unicorn-logo.png" title="Org Mode + Hugo Rock!" */>}}
```

As this in HTML:

{{< figure src="/images/org-mode-unicorn-logo.png" title="Org Mode + Hugo Rock!" >}}
kaushalmodi added a commit that referenced this issue Nov 9, 2017
Now the {{% .. %}} shortcodes will be escaped too.

Add a new function org-hugo--escape-hugo-shortcode.

#94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant