medium-proeditor
Version:
A powerful & customizable Medium-style rich text editor
18 lines • 671 B
TypeScript
import { Feature } from '../../Feature';
/**
* Regular expressions to match inline code blocks enclosed in backticks.
* It matches:
* - An opening backtick, followed by
* - Any text that doesn't include a backtick (captured for marking), followed by
* - A closing backtick.
* This ensures that any text between backticks is formatted as code,
* regardless of the surrounding characters (exception being another backtick).
*/
export declare const inputRegex: RegExp;
/**
* Matches inline code while pasting.
*/
export declare const pasteRegex: RegExp;
declare const Code: Feature<any, any>;
export default Code;
//# sourceMappingURL=index.d.ts.map