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 suggestion: Smarter handling of <code> block languages #3

Open
bland328 opened this issue Aug 25, 2021 · 0 comments
Open

Feature suggestion: Smarter handling of <code> block languages #3

bland328 opened this issue Aug 25, 2021 · 0 comments

Comments

@bland328
Copy link

bland328 commented Aug 25, 2021

markdownizer-chrome is fantastic, thank you!

It would be even more fantastic if it could be smarter about the language of code blocks.

For example, when I use it to copy the Python code block in this Stack Overflow answer, I get:

```hljs
>>> import codecs
...

It would be lovely if markdownizr would dig a little deeper into the <pre class="lang-py s-code-block"> tag, so that it could generate:

```py
>>> import codecs
...

If I get a chance to tackle it myself one of these days, I'll send a PR. Thanks for considering!

@bland328 bland328 changed the title Feature request: Smarter handling of <code> block languages Feature suggestion: Smarter handling of <code> block languages Aug 25, 2021
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

1 participant