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

tools: support rewriting links in code blocks #52938

Closed
wants to merge 1 commit into from

Commits on May 10, 2024

  1. tools: support rewriting links in code blocks

    Within the API documentation for modules, there is a section of
    pseudo-code which contains links to another file. This pseudo-code is
    inside of a pre-formatted element (`<pre>`), but that prevents the
    build process from rewriting those links from the Markdown source to
    their corresponding HTML output.
    
    This addresses that by adding a new language, "pre", whose output
    remains unformatted but allows code fences to be annotated with
    metadata - code fences must have a language before the metadata. When
    the right metadata ("html") is present, it indicates that the code
    block should be processed so that anchor tags are rewritten just like
    other references.
    
    The actual change to the documentation will happen in a later commit.
    crawford committed May 10, 2024
    Configuration menu
    Copy the full SHA
    4862966 View commit details
    Browse the repository at this point in the history