Home / Function/ test_markdown_pre_processor() — tailwindcss Function Reference

test_markdown_pre_processor() — tailwindcss Function Reference

Architecture documentation for the test_markdown_pre_processor() function in markdown.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  47c6e073_ba3a_7210_81af_43eab7661f14["test_markdown_pre_processor()"]
  da76d816_5e8f_2461_5d6f_e22ab33fa549["markdown.rs"]
  47c6e073_ba3a_7210_81af_43eab7661f14 -->|defined in| da76d816_5e8f_2461_5d6f_e22ab33fa549
  style 47c6e073_ba3a_7210_81af_43eab7661f14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/markdown.rs lines 44–62

    fn test_markdown_pre_processor() {
        for (input, expected) in [
            // Convert dots to spaces inside markdown inline directives
            (
                ":span[Some Text]{.text-gray-500}",
                ":span[Some Text]  text-gray-500 ",
            ),
            (
                ":span[Some Text]{.text-gray-500.bg-red-500}",
                ":span[Some Text]  text-gray-500 bg-red-500 ",
            ),
            (
                ":span[Some Text]{#myId .my-class key=val key2='val 2'}",
                ":span[Some Text] #myId  my-class key=val key2='val 2' ",
            ),
        ] {
            Markdown::test(input, expected);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does test_markdown_pre_processor() do?
test_markdown_pre_processor() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/markdown.rs.
Where is test_markdown_pre_processor() defined?
test_markdown_pre_processor() is defined in crates/oxide/src/extractor/pre_processors/markdown.rs at line 44.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free