awslabs/duvet

Extracted section target isn't quite right

Closed this issue · 1 comments

eagr commented

Try running

duvet extract https://www.rfc-editor.org/rfc/rfc9114.html

From the generated toml file:

image

But the link won't navigate to the desired section. The expected target would be

target = "https://www.rfc-editor.org/rfc/rfc9114.html#section-3.1.1"

It seems like changing the write_toml function would be a quick fix for this particular case, but not sure if it's the right move to accommodate all use cases.

Yeah it would be good to use the canonical anchor