micromark-extension-cjk-friendly-gfm-strikethrough
Version:
micromark extension to make Markdown strikethrough (`~~`) in GFM more friendly with Chinese, Japanese, and Korean (CJK)
18 lines (15 loc) • 540 B
TypeScript
import { Extension } from 'micromark-util-types';
interface Options {
singleTilde?: boolean;
}
/**
* Create an extension for `micromark` to enable GFM strikethrough syntax.
*
* @param {Options | null | undefined} [options={}]
* Configuration.
* @returns {Extension}
* Extension for `micromark` that can be passed in `extensions`, to
* enable GFM strikethrough syntax.
*/
declare function gfmStrikethroughCjkFriendly(options?: Options | null | undefined): Extension;
export { type Options, gfmStrikethroughCjkFriendly };