index.ts — astro Source File
Architecture documentation for index.ts, a typescript file in the astro codebase. 16 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 69f93a80_1603_3b35_46fa_5fc7b973b199["index.ts"] cefdad35_fdf4_bf05_5cfc_12d17b85bef1["./highlight.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> cefdad35_fdf4_bf05_5cfc_12d17b85bef1 82ae5314_b211_69e5_4f3f_2fb0448de90c["./load-plugins.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 82ae5314_b211_69e5_4f3f_2fb0448de90c 27134fda_3b29_5671_9f30_8346f5aa2756["./rehype-collect-headings.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 27134fda_3b29_5671_9f30_8346f5aa2756 db2c2ad0_b923_53c5_2169_85ca82707076["./rehype-images.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> db2c2ad0_b923_53c5_2169_85ca82707076 86e5edb4_7919_9f5d_9856_b1d9c1f60b6b["./rehype-prism.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 86e5edb4_7919_9f5d_9856_b1d9c1f60b6b 2669c298_a9c2_1e88_4b08_414c1c64509f["./rehype-shiki.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 2669c298_a9c2_1e88_4b08_414c1c64509f 55ed7971_267c_be49_a9e9_8233db4f2b05["./remark-collect-images.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 55ed7971_267c_be49_a9e9_8233db4f2b05 2ebb1f90_a903_fafc_eb9b_ce29b5c61608["./types.js"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 2ebb1f90_a903_fafc_eb9b_ce29b5c61608 e5a862f6_93a8_41da_e955_8ab49095d030["rehype-raw"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> e5a862f6_93a8_41da_e955_8ab49095d030 69dd2adb_00e5_729f_94dd_cc41fa922bfb["rehype-stringify"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 69dd2adb_00e5_729f_94dd_cc41fa922bfb 37c1053a_3eb4_b601_e732_7f56687f9a53["remark-gfm"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 37c1053a_3eb4_b601_e732_7f56687f9a53 b768d4ab_cfe2_dccb_6546_69e5f6862774["remark-parse"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> b768d4ab_cfe2_dccb_6546_69e5f6862774 b5eedb63_b659_9ab6_0741_b5822edde660["remark-rehype"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> b5eedb63_b659_9ab6_0741_b5822edde660 1f1ea76c_95e6_f181_4104_c30c8bbf306e["remark-smartypants"] 69f93a80_1603_3b35_46fa_5fc7b973b199 --> 1f1ea76c_95e6_f181_4104_c30c8bbf306e style 69f93a80_1603_3b35_46fa_5fc7b973b199 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import rehypeRaw from 'rehype-raw';
import rehypeStringify from 'rehype-stringify';
import remarkGfm from 'remark-gfm';
import remarkParse from 'remark-parse';
import remarkRehype from 'remark-rehype';
import remarkSmartypants from 'remark-smartypants';
import { unified } from 'unified';
import { VFile } from 'vfile';
import { defaultExcludeLanguages } from './highlight.js';
import { loadPlugins } from './load-plugins.js';
import { rehypeHeadingIds } from './rehype-collect-headings.js';
import { rehypeImages } from './rehype-images.js';
import { rehypePrism } from './rehype-prism.js';
import { rehypeShiki } from './rehype-shiki.js';
import { remarkCollectImages } from './remark-collect-images.js';
import type {
AstroMarkdownOptions,
AstroMarkdownProcessorOptions,
MarkdownProcessor,
SyntaxHighlightConfig,
} from './types.js';
export {
extractFrontmatter,
isFrontmatterValid,
type ParseFrontmatterOptions,
type ParseFrontmatterResult,
parseFrontmatter,
} from './frontmatter.js';
export { rehypeHeadingIds } from './rehype-collect-headings.js';
export { rehypePrism } from './rehype-prism.js';
export { rehypeShiki } from './rehype-shiki.js';
export { remarkCollectImages } from './remark-collect-images.js';
export {
type CreateShikiHighlighterOptions,
createShikiHighlighter,
type ShikiHighlighter,
type ShikiHighlighterHighlightOptions,
} from './shiki.js';
export * from './types.js';
export const syntaxHighlightDefaults: Required<SyntaxHighlightConfig> = {
type: 'shiki',
excludeLangs: defaultExcludeLanguages,
};
export const markdownConfigDefaults: Required<AstroMarkdownOptions> = {
syntaxHighlight: syntaxHighlightDefaults,
shikiConfig: {
langs: [],
theme: 'github-dark',
themes: {},
wrap: false,
transformers: [],
langAlias: {},
},
remarkPlugins: [],
rehypePlugins: [],
remarkRehype: {},
gfm: true,
// ... (139 more lines)
Domain
Subdomains
Functions
Dependencies
- ./highlight.js
- ./load-plugins.js
- ./rehype-collect-headings.js
- ./rehype-images.js
- ./rehype-prism.js
- ./rehype-shiki.js
- ./remark-collect-images.js
- ./types.js
- rehype-raw
- rehype-stringify
- remark-gfm
- remark-parse
- remark-rehype
- remark-smartypants
- unified
- vfile
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in index.ts?
index.ts defines 2 function(s): createMarkdownProcessor, prefixError.
What does index.ts depend on?
index.ts imports 16 module(s): ./highlight.js, ./load-plugins.js, ./rehype-collect-headings.js, ./rehype-images.js, ./rehype-prism.js, ./rehype-shiki.js, ./remark-collect-images.js, ./types.js, and 8 more.
Where is index.ts in the architecture?
index.ts is located at packages/markdown/remark/src/index.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/markdown/remark/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free