You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use Comrak to create some custom Markdown extensions, including fancy code blocks along the lines of rehype-pretty-code. One barrier presented by the current implementation is that SyntaxHighlighterAdapter doesn't provide access to arbitrary metadata like this:
Here is some Rust code:
```rust filename="main.rs"
fn main() {}
Here, filename="main.rs" wouldn't be accessible to SyntaxHighlighterAdapter. Now, it is possible to access this in Comrak using the more manual method (iterating through the AST nodes) but I find SyntaxHighlighterAdapter much more ergonomic. Happy to help out with this, just wanted to see if others had run into this limitation.
The text was updated successfully, but these errors were encountered:
I'd like to use Comrak to create some custom Markdown extensions, including fancy code blocks along the lines of
rehype-pretty-code
. One barrier presented by the current implementation is thatSyntaxHighlighterAdapter
doesn't provide access to arbitrary metadata like this:Here,
filename="main.rs"
wouldn't be accessible toSyntaxHighlighterAdapter
. Now, it is possible to access this in Comrak using the more manual method (iterating through the AST nodes) but I findSyntaxHighlighterAdapter
much more ergonomic. Happy to help out with this, just wanted to see if others had run into this limitation.The text was updated successfully, but these errors were encountered: