ds-markdown
Version:
> π React Markdown ζεε¨η»η»δ»ΆοΌζδΎη°δ»£θ倩ηι’ζζ
21 lines β’ 794 B
TypeScript
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