2022-02-22 13:18:37 +00:00
|
|
|
import { HighlightStyle, tags as t } from "@codemirror/highlight";
|
|
|
|
import * as ct from "./customtags";
|
2022-02-21 08:32:36 +00:00
|
|
|
|
|
|
|
export default HighlightStyle.define([
|
2022-02-22 13:18:37 +00:00
|
|
|
{ tag: t.heading1, class: "h1" },
|
|
|
|
{ tag: t.heading2, class: "h2" },
|
|
|
|
{ tag: t.link, class: "link" },
|
|
|
|
{ tag: t.meta, class: "meta" },
|
|
|
|
{ tag: t.quote, class: "quote" },
|
|
|
|
{ tag: t.monospace, class: "code" },
|
|
|
|
{ tag: t.url, class: "url" },
|
|
|
|
{ tag: ct.WikiLinkTag, class: "wiki-link" },
|
|
|
|
{ tag: ct.WikiLinkPageTag, class: "wiki-link-page" },
|
|
|
|
{ tag: ct.TagTag, class: "tag" },
|
|
|
|
{ tag: ct.MentionTag, class: "mention" },
|
|
|
|
{ tag: t.emphasis, class: "emphasis" },
|
|
|
|
{ tag: t.strong, class: "strong" },
|
|
|
|
{ tag: t.atom, class: "atom" },
|
|
|
|
{ tag: t.bool, class: "bool" },
|
|
|
|
{ tag: t.url, class: "url" },
|
|
|
|
{ tag: t.inserted, class: "inserted" },
|
|
|
|
{ tag: t.deleted, class: "deleted" },
|
|
|
|
{ tag: t.literal, class: "literal" },
|
|
|
|
{ tag: t.list, class: "list" },
|
|
|
|
{ tag: t.definition, class: "li" },
|
|
|
|
{ tag: t.string, class: "string" },
|
|
|
|
{ tag: t.number, class: "number" },
|
|
|
|
{ tag: [t.regexp, t.escape, t.special(t.string)], class: "string2" },
|
|
|
|
{ tag: t.variableName, class: "variableName" },
|
|
|
|
{ tag: t.comment, class: "comment" },
|
|
|
|
{ tag: t.invalid, class: "invalid" },
|
|
|
|
{ tag: t.punctuation, class: "punctuation" },
|
2022-02-21 08:32:36 +00:00
|
|
|
]);
|