इस प्रोजेक्ट के बारे में

remark एक markdown processor है जो plugins के आसपास बनाया गया है और unified collective का हिस्सा है। markdown को plain text की तरह मानने के बजाय, यह उसे एक structured abstract syntax tree (mdast) में parse करता है, जिसे plugins content को फिर से serialize करने से पहले inspect और modify कर सकते हैं। इस monorepo में कई packages हैं: remark-parse (markdown से syntax tree), remark-stringify (syntax tree से वापस markdown), remark (markdown-to-markdown काम के लिए unified, parse और stringify को जोड़ता है), और remark-cli (markdown files को inspect और format करने के लिए एक command-line interface)। README में बताई गई मुख्य विशेषताए: - डिफ़ॉल्ट रूप से CommonMark compliant, और plugins के माध्यम से GFM या MDX support उपलब्ध। - AST-आधारित processing programmatic inspection और transformation को सरल बनाती है। - 150+ plugins का ecosystem, जिनमें remark-gfm (GitHub flavored markdown), remark-lint (style checking), remark-toc (table of contents generation) और remark-rehype (markdown से HTML) शामिल हैं। - servers, clients, CLIs और Deno पर उपयोग योग्य। सामान्य उपयोगों में markdown को HTML में बदलना (अक्सर rehype ecosystem और rehype-sanitize के साथ मिलाकर), GFM और YAML frontmatter जैसे syntax extensions सक्षम करना, consistency के लिए markdown की linting, और CLI तथा package.json में remarkConfig entry के माध्यम से किसी project की markdown files को format करना शामिल है। यह project TypeScript के साथ पूरी तरह typed है, और mdast types @types/mdast के माध्यम से उपलब्ध हैं। README security संबंधी बातों का उल्लेख करता है: क्योंकि markdown HTML बन सकता है, अनुचित handling उपयोगकर्ताओं को cross-site scripting के जोखिम में डाल सकती है, इसलिए HTML बनाते समय rehype-sanitize की सिफारिश की जाती है; बड़े या adversarial inputs performance या crash संबंधी समस्याएँ भी पैदा कर सकते हैं, इसलिए input size को सीमित करना और अलग thread या worker में processing करना सलाहकार है। plugins के जोखिम का मूल्यांकन अलग-अलग किया जाना चाहिए।