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

Remove markdownify for non-Markdown files #378

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

trombonehero
Copy link
Contributor

When using Asciidoc (or RST, I suppose), the Inner content passed to these shortcodes should already be HTML-formatted. Making this change allows us to pass formatted content (which may include a shortcode) to a shortcode, which previously only worked with Markdown.

There might be an opportunity for a new abstraction here (maybe a partial?), but this approach seems to work OK for me. Maybe it'll be useful to others too?

When using Asciidoc (or RST, I suppose), the Inner content passed to these shortcodes should already be HTML-formatted. Making this change allows us to pass formatted content (which may include a shortcode) to a shortcode, which previously only worked with Markdown.
@LisaFC
Copy link
Collaborator

LisaFC commented Dec 8, 2020

This looks very useful, thanks! We may tweak how we use markdownify in some of our shortcodes/layouts in future (we had to come up with a quick solution last year that worked with Hugo both before and after 0.6.0), but this is great for now.

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

Successfully merging this pull request may close these issues.

2 participants