Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encoding and syntax highlighting of example code #2175

Merged
merged 2 commits into from
Oct 9, 2024

Commits on Oct 2, 2024

  1. Consistently use <xmp> instead of <pre> for code examples

    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.
    
    See the [Bikeshed documentation][1] for more on using `<xmp>`.
    
    [1]: https://speced.github.io/bikeshed/#xmp
    emlun committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    41c514f View commit details
    Browse the repository at this point in the history
  2. Fix syntax highlighting tags

    emlun committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    ef54852 View commit details
    Browse the repository at this point in the history