We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The mdbook tool supports code blocks like:
mdbook
```rust
But also ones like
```rust,editable
You typically use ,editable to get line numbers on the code block (but it also makes the code editable in-line).
,editable
The latter kind are not supported by mdslides currently - the language goes though as rust,editable which is not supported by highlight.js.
mdslides
rust,editable
We could try and patch mdbook to make all code blocks editable by default, or we should patch mdslides to strip ,editable from any code blocks.
The text was updated successfully, but these errors were encountered:
Ah, so this works:
```rust editable fn your_code_here() { } ```
Sorry, something went wrong.
Here's a concrete example:
```rust compile_fail use std::io::prelude::*; fn main() -> std::io::Result<()> { let f = std::fs::File::create("hello.txt")?; write_and_close(f); write_and_close(f); Ok(()) } fn write_and_close(mut f: std::fs::File) { f.write(b"hello"); } ```
No branches or pull requests
The
mdbook
tool supports code blocks like:But also ones like
You typically use
,editable
to get line numbers on the code block (but it also makes the code editable in-line).The latter kind are not supported by
mdslides
currently - the language goes though asrust,editable
which is not supported by highlight.js.We could try and patch
mdbook
to make all code blocks editable by default, or we should patchmdslides
to strip,editable
from any code blocks.The text was updated successfully, but these errors were encountered: