remarkPlugin.js — astro Source File
Architecture documentation for remarkPlugin.js, a javascript file in the astro codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 9853324b_d3c8_642d_8be9_d67aa6b454e0["remarkPlugin.js"] b0812944_061a_a541_8923_f6b52dfb7daa["astro.config.mjs"] b0812944_061a_a541_8923_f6b52dfb7daa --> 9853324b_d3c8_642d_8be9_d67aa6b454e0 style 9853324b_d3c8_642d_8be9_d67aa6b454e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export default function plugin() {
return transformer;
function transformer(tree) {
function traverse(node) {
if (node.type === "image") {
node.data = node.data || {};
node.data.hProperties = node.data.hProperties || {};
node.data.hProperties.id = "test";
node.data.hProperties.width = "300";
node.data.hProperties.widths = [300,600];
node.data.hProperties.sizes = "(min-width: 600px) 600w, 300w";
}
if (node.children) {
node.children.forEach(traverse);
}
}
traverse(tree);
}
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does remarkPlugin.js do?
remarkPlugin.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in remarkPlugin.js?
remarkPlugin.js defines 1 function(s): plugin.
What files import remarkPlugin.js?
remarkPlugin.js is imported by 1 file(s): astro.config.mjs.
Where is remarkPlugin.js in the architecture?
remarkPlugin.js is located at packages/integrations/mdx/test/fixtures/image-remark-imgattr/remarkPlugin.js (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/integrations/mdx/test/fixtures/image-remark-imgattr).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free