Skip to content

Store references to URLs in ParsedChangelog #6

@benwebber

Description

@benwebber

pulldown-cmark parses links as Tag::Link variants:

https://docs.rs/pulldown-cmark/0.13.0/pulldown_cmark/enum.Tag.html#variant.Link

These have the same lifetime as the source &str. It should be possible to avoid allocating a String to store URLs. That would make the parser completely zero-copy.

Alternatively, we could use the URL spans instead, if we can figure out how to obtain them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions