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

Literal export of Non-markdown Shortcodes ({{< .. >}}) contents #547

Closed
f0-x opened this issue Feb 3, 2022 · 4 comments
Closed

Literal export of Non-markdown Shortcodes ({{< .. >}}) contents #547

f0-x opened this issue Feb 3, 2022 · 4 comments
Labels
awaiting user response not a bug This is the expected behavior, not a bug

Comments

@f0-x
Copy link

f0-x commented Feb 3, 2022

Please help me on exporting the Greater than(>) and Less than (<) symbol literally from org to markdown. I want the ox-hugo to export the contents inside of my Non-markdown shortcode (mermaid) without any changes. Like here, the ">" & "<" symbols gets exported to "&gt" and "&lt" respectively. Thank you for this awesome tool :)
shortcode

@kaushalmodi
Copy link
Owner

Related: #540

@kaushalmodi kaushalmodi added the not a bug This is the expected behavior, not a bug label Feb 3, 2022
@kaushalmodi
Copy link
Owner

@f0-x Sorry, I slightly misread this issue.

To fix what you are seeing, you will need to set the :raw property for the special block type mermaid to t.

See https://ox-hugo.scripter.co/doc/org-special-blocks/#raw-org-contents.

So try this out:

(with-eval-after-load 'ox-hugo
  (add-to-list 'org-hugo-special-block-type-properties '("mermaid" . (:raw t))))

@f0-x
Copy link
Author

f0-x commented Feb 3, 2022

I just discovered the same thing reading your documentation and you just posted the same thing here. 😁 Sorry for wasting your time Mr. Modi. Cheers for this awesome tool 💛

@kaushalmodi
Copy link
Owner

kaushalmodi commented Feb 3, 2022

The related issue was actually #377.

I have also added an example of setting :raw t property to the documentation: https://ox-hugo.scripter.co/doc/org-special-blocks/#code-snippet--example-update-raw-special-block-prop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting user response not a bug This is the expected behavior, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants