flying-sheep / rust-rst

a reStructuredText parser and renderer
https://crates.io/crates/rst
Apache License 2.0
98 stars 10 forks source link

Arbitrary scheme url demo for issue #18 #19

Closed sooda closed 4 years ago

sooda commented 4 years ago

The test currently renders "not_url_scheme:foo" to a link. With the hack patch on top the test would pass.

flying-sheep commented 4 years ago

I made it less hacky by just auto-converting URLs with a known scheme.

TODO: figure out how to get such data into Pest and use a static list like e.g. the one in uriparse sgodwincs/uriparse-rs#12