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

Add a <Listing> preprocessor #3918

Merged
merged 8 commits into from
May 14, 2024
Merged

Add a <Listing> preprocessor #3918

merged 8 commits into from
May 14, 2024

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    000b3d0 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Implement an mdBook preprocessor for <Listing>s

    Instead of requiring a bunch of `<span>` wrangling, add a custom tag,
    `<Listing>`, whose attributes get rewritten into the desired output
    format, using `<figure>` and `<figcaption>` for improved semantic HTML.
    
    Support both a default (nice and fancy) HTML output mode and a “simple”
    mode to make it so we get the desired output format for the NoStarch
    input files as well.
    chriskrycho committed May 14, 2024
    Configuration menu
    Copy the full SHA
    e077891 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dad2b61 View commit details
    Browse the repository at this point in the history
  3. Merge mdbook-trpl-listing into the repository

    This does not yet update all the workspace dependencies to be shared
    between the listing and note preprocessors; it *only* integrates the
    repo histories.
    chriskrycho committed May 14, 2024
    Configuration menu
    Copy the full SHA
    59a02b9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3254856 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    04841f7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e65efe3 View commit details
    Browse the repository at this point in the history
  7. infra: Convert one listing to use <Listing>

    - Add CSS for `figure.listing`; this now renders identically to how the
      existing listings render.
    - Convert the first listing in the book to use `<Listing>` instead of
      a bunch of `<span>`s.
    chriskrycho committed May 14, 2024
    Configuration menu
    Copy the full SHA
    17c244a View commit details
    Browse the repository at this point in the history