Closed mgeisler closed 1 year ago
@mgeisler would you be able to add an example?
@mgeisler would you be able to add an example?
Sorry, I submitted the issue much too soon :smile:
Run dprint config update
then dprint fmt
in the repo and it should be implemented now.
Run
dprint config update
thendprint fmt
in the repo and it should be implemented now.
Wow, this is amazing! Works very well, thank you so much!
Thank you for the formatter, I like it a lot!
In Comprehensive Rust, we use the mdbook code block attributes extensively. So we write
all over the place. An example is in our page about enums.
Right now, it seems like
dprint
doesn't parse (and ignore) the,editable
part of the code block info string. The result is that the code blocks aren't formatted as Rust like I had hoped.The spec says:
which implies to me that mdbook should use spaces, not commas, to tack on more information to the code block.
Could
dprint
be updated to support trailing information, separated by either space or comma?