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

[Question] Preventing code blocks by tabs #537

Open
HarunD opened this issue Apr 16, 2019 · 2 comments
Open

[Question] Preventing code blocks by tabs #537

HarunD opened this issue Apr 16, 2019 · 2 comments

Comments

@HarunD
Copy link

HarunD commented Apr 16, 2019

I am working on a Hugo website and I am wondering whether there is a way to disable the default behavior that converts tabbed content to code blocks.

I have a case where I would like to use only code fences and therefore disable/prevent the behavior that converts tabbed content into code blocks.

I am aware that this is a default behvaiour for markdown and see that there is no option currently to configure Blackfriday to disable tabs-to-code block conversion - I would just like to see whether anyone had a similar requirement and whether there is a straightforward way to do it.

Thanks!

@rtfb
Copy link
Collaborator

rtfb commented Apr 20, 2019

Yeah, a cursory look at the flags confirms there's no way to do that. And I'm not aware of any good workaround.

In v2 you could possibly post-process non-fenced code block elements and custom-render them as if they're not code, but that won't help you with Hugo.

@HarunD
Copy link
Author

HarunD commented Apr 22, 2019

@rtfb thanks for your answer

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

No branches or pull requests

2 participants