UNPKG

ds-markdown

Version:

> πŸš€ React Markdown ζ‰“ε­—εŠ¨η”»η»„δ»ΆοΌŒζδΎ›ηŽ°δ»£θŠε€©η•Œι’ζ•ˆζžœ

21 lines β€’ 794 B
import { Plugin } from 'unified'; /** * remark plugin: Convert \[...\] to $$...$$, \(...\) to $...$, so that remark-math can recognize them. */ declare const remarkMathBracket: Plugin; /** * Convert bracket-formatted math formulas to dollar sign format * Supports the following conversions: * - \(...\) β†’ $...$ (inline formula) * - \[...\] β†’ $$...$$ (block formula) * * Special handling: * - If text contains Markdown links, skip conversion to avoid misprocessing * - Use placeholder mechanism to protect brackets inside block formulas from being mis-converted * * @param value String to convert * @returns Converted string */ export declare const replaceMathBracket: (value: string) => string; export default remarkMathBracket; //# sourceMappingURL=remarkMathBracket.d.ts.map