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

Accept additional user-defined classes in fenced code blocks #79454

Closed

Commits on Mar 13, 2021

  1. Accept additional custom classes in fenced code blocks

    This allow users to write the following:
    
    ```
    /// Some code block with `rust,class:test:name` as the language string:
    ///
    /// ```rust,class:test:name
    /// int main(void) {
    ///     return 0;
    /// }
    /// ```
    fn main() {}
    ```
    
    This block will be rendered without any highlighting and will have a class
    `test:name` in the resulting CSS.
    poliorcetics committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    3326af2 View commit details
    Browse the repository at this point in the history