cargo-rdme
cargo-rdme copied to clipboard
Add support for `rustdoc` shorthand link syntax & deps bump
Implemented recognition and processing of shorthand [`code`] patterns.
These patterns are now properly handled for both link stripping and docs.rs link generation.
Changes:
- Add detection of shorthand patterns like [
function] in documentation. - Support stripping brackets from such patterns when using
--intralinks-strip-linksflag. - Generate proper
docs.rslinks for recognized shorthand patterns. - Bumped deps, small
cargo_metadataupdate-related fix (sep. commit).
Used e.g. just now in dithereens README.md generated from shorthand links in its lib.rs.
Fixed a bug in my impl. I've been using my fork w/o (other) issues now since Sep. 9, when I submitted this PR originally. I also added tests for this feature.
@orium I'd love to see this PR merged