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

20 lines (19 loc) 730 B
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */ 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 };