Home / Function/ parsePreTag() — astro Function Reference

parsePreTag() — astro Function Reference

Architecture documentation for the parsePreTag() function in syntax-highlighting.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  3e7272d0_8c1e_d9aa_8e21_9745a7efe384["parsePreTag()"]
  06a4f90b_1e9f_7421_e791_b3a07e2643ec["syntax-highlighting.test.js"]
  3e7272d0_8c1e_d9aa_8e21_9745a7efe384 -->|defined in| 06a4f90b_1e9f_7421_e791_b3a07e2643ec
  style 3e7272d0_8c1e_d9aa_8e21_9745a7efe384 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/markdoc/test/syntax-highlighting.test.js lines 131–136

function parsePreTag(html) {
	const { document } = parseHTML(html);
	const pre = document.querySelector('pre');
	assert.ok(pre);
	return pre;
}

Domain

Subdomains

Frequently Asked Questions

What does parsePreTag() do?
parsePreTag() is a function in the astro codebase, defined in packages/integrations/markdoc/test/syntax-highlighting.test.js.
Where is parsePreTag() defined?
parsePreTag() is defined in packages/integrations/markdoc/test/syntax-highlighting.test.js at line 131.

Analyze Your Own Codebase

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

Try Supermodel Free