slint-ui / document-features

Extract documentation for the feature flags from comments in Cargo.toml
Apache License 2.0
173 stars 13 forks source link

docs.rs example has extra # #22

Closed jedbrown closed 9 months ago

jedbrown commented 10 months ago

There is a comment in the code, but this accommodation in the code affects the example in the documentation:

https://docs.rs/document-features/latest/document_features/index.html#examples

It seems best if the rendered docs could strip out the leading #, but a comment at that point would still be an improvement.

ogoffart commented 10 months ago

Thanks for filling an issue. Looks like there was a change in rustdoc at some point. It used to work in previous versions: https://docs.rs/document-features/0.2.6/document_features/

I wonder how to make it render properly now.

ogoffart commented 9 months ago

I fixed that in commit https://github.com/slint-ui/document-features/commit/8d892427c2a6bd62da7e1db7950f83ab600ef397 Thanks again for reporting the issue.