UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

19 lines (18 loc) 497 B
import { TokenType as o } from "../../../types.mjs"; const e = { name: "markdown", patterns: { [o.Heading]: /^#{1,6}\s+[^\n]+/m, [o.Bold]: /^\*\*[^*]+\*\*|\b__[^_]+__\b/, [o.Italic]: /^\*[^*]+\*|\b_[^_]+_\b/, [o.Link]: /^\[([^\]]+)\]\(([^)]+)\)/, [o.Code]: /^`[^`]+`|^```[\s\S]+?```/m, [o.List]: /^(?:[*+-]|\d+\.)\s+/m, [o.Blockquote]: /^>\s+[^\n]+/m, [o.HorizontalRule]: /^(?:-{3,}|\*{3,}|_{3,})$/m }, keywords: [] }; export { e as markdownDefinition };