Open hegza opened 3 months ago
I've never see links in description. Is this allowed by SVD? I'm not sure.
I would've assumed that svd2rust does not do transformations of the field contents but it does seem to translate special HTML characters. Surely it's wrong that it sometimes does it and sometimes not.
The behavior is relevant for our use case. I'll try to find time to investigate.
PRs are appreciated.
Given an SVD with an HTML link in a description creates either a correct or a partially escaped link definition depending on where it is generated in the PAC.
E.g., relevant part of input SVD:
Relevant parts of output:
We see the generated link symbols are partially escaped when used in the
mod
documentation and correctly escaped when used in peripheralstruct
documentation.Reproduction
svd2rust --target riscv -i test.svd && form -i lib.rs -o src && rm lib.rs && cargo fmt
svd2rust --version