w3c / webauthn

Web Authentication: An API for accessing Public Key Credentials
https://w3c.github.io/webauthn/
Other
1.19k stars 172 forks source link

Fix encoding and syntax highlighting of example code #2175

Closed emlun closed 1 month ago

emlun commented 1 month ago

Using <pre> sometimes causes some characters to be converted into others. This is especially apparent in CDDL examples, where for example the first single quote in foo = h'001122' gets converted into "’" (U+2019) instead of "'" (U+0027), which is incorrect and also breaks CDDL syntax highlighting.

This PR also fixes the syntax highlighting tags on some incorrectly tagged or untagged examples.

See the Bikeshed documentation for more on using <xmp>.


Preview | Diff