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

Feature request: Classes for code blocks #1

Open
TethysSvensson opened this issue Nov 3, 2020 · 3 comments
Open

Feature request: Classes for code blocks #1

TethysSvensson opened this issue Nov 3, 2020 · 3 comments

Comments

@TethysSvensson
Copy link

Would it be possible to add classes to code blocks as well?

Currently when I try this:

{:.foo}
```
test
```

It will result in this html:

<div class="foo">
</div>
<pre><code>test
</code></pre>
@pkaminski
Copy link
Collaborator

@dhbradshaw, what do you think?

@dhbradshaw
Copy link
Contributor

@pkaminski : that makes sense.

@TethysSvensson That makes sense. Are you open to creating a pr?

@TethysSvensson
Copy link
Author

I principle yes, but I have a bit too much on my plate right now.

For now I solved my problem by writing CSS that hides the div.foo object and applies some styling to the pre block that comes after the div.foo.

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

3 participants