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

Container blocks should only support a set of known types #44

Open
kazk opened this issue Oct 26, 2021 · 0 comments
Open

Container blocks should only support a set of known types #44

kazk opened this issue Oct 26, 2021 · 0 comments
Labels
Milestone

Comments

@kazk
Copy link
Member

kazk commented Oct 26, 2021

else if (language[ 0 ] === '%') {
return wrapInBlockDiv(language, result.render(code));
}

Code blocks with infostring starting with % is wrapped in a div with class name block--${infostring.slice(1)}.

This should be restricted to known types: info, warn, danger. And maybe just %block because there are some instructions with %.

@kazk kazk added this to the v1 milestone Oct 26, 2021
@kazk kazk added the trim label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant