[webauthn] Merged Pull Request: Fix encoding and syntax highlighting of example code

selfissued has just merged emlun's pull request 2175 for https://github.com/w3c/webauthn:

== Fix encoding and syntax highlighting of example code ==
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][1] for more on using `<xmp>`.

[1]: https://speced.github.io/bikeshed/#xmp


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/w3c/webauthn/pull/2175.html" title="Last updated on Oct 2, 2024, 8:45 PM UTC (ef54852)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/webauthn/2175/5831a2c...ef54852.html" title="Last updated on Oct 2, 2024, 8:45 PM UTC (ef54852)">Diff</a>

See https://github.com/w3c/webauthn/pull/2175


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 October 2024 18:13:17 UTC