mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(highlightjs): create empty mapping file
This commit is contained in:
parent
51f2b9fc81
commit
e0aa6f9200
170
packages/highlightjs/src/syntax_highlighting.ts
Normal file
170
packages/highlightjs/src/syntax_highlighting.ts
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
import type { LanguageFn } from "highlight.js";
|
||||||
|
|
||||||
|
const byMimeType: Record<string, (() => Promise<LanguageFn>) | null> = {
|
||||||
|
"text/plain": null,
|
||||||
|
|
||||||
|
"application/dart": null,
|
||||||
|
"application/edn": null,
|
||||||
|
"application/javascript;env=backend": null,
|
||||||
|
"application/javascript;env=frontend": null,
|
||||||
|
"application/json": null,
|
||||||
|
"application/ld+json": null,
|
||||||
|
"application/mbox": null,
|
||||||
|
"application/n-triples": null,
|
||||||
|
"application/pgp": null,
|
||||||
|
"application/sieve": null,
|
||||||
|
"application/sparql-query": null,
|
||||||
|
"application/typescript": null,
|
||||||
|
"application/x-aspx": null,
|
||||||
|
"application/x-bat": null,
|
||||||
|
"application/x-cypher-query": null,
|
||||||
|
"application/x-ejs": null,
|
||||||
|
"application/x-erb": null,
|
||||||
|
"application/x-jsp": null,
|
||||||
|
"application/x-powershell": null,
|
||||||
|
"application/xml-dtd": null,
|
||||||
|
"application/xquery": null,
|
||||||
|
"message/http": null,
|
||||||
|
"text/apl": null,
|
||||||
|
"text/coffeescript": null,
|
||||||
|
"text/css": null,
|
||||||
|
"text/html": null,
|
||||||
|
"text/jinja2": null,
|
||||||
|
"text/jsx": null,
|
||||||
|
"text/mirc": null,
|
||||||
|
"text/tiki": null,
|
||||||
|
"text/troff": null,
|
||||||
|
"text/turtle": null,
|
||||||
|
"text/typescript-jsx": null,
|
||||||
|
"text/vbscript": null,
|
||||||
|
"text/velocity": null,
|
||||||
|
"text/vnd.mermaid": null,
|
||||||
|
"text/mermaid": null,
|
||||||
|
"text/x-asm-mips": null,
|
||||||
|
"text/x-asterisk": null,
|
||||||
|
"text/x-brainfuck": null,
|
||||||
|
"text/x-c++src": null,
|
||||||
|
"text/x-cassandra": null,
|
||||||
|
"text/x-clojure": null,
|
||||||
|
"text/x-clojurescript": null,
|
||||||
|
"text/x-cmake": null,
|
||||||
|
"text/x-cobol": null,
|
||||||
|
"text/x-common-lisp": null,
|
||||||
|
"text/x-crystal": null,
|
||||||
|
"text/x-csharp": null,
|
||||||
|
"text/x-csrc": null,
|
||||||
|
"text/x-cython": null,
|
||||||
|
"text/x-d": null,
|
||||||
|
"text/x-diff": null,
|
||||||
|
"text/x-django": null,
|
||||||
|
"text/x-dockerfile": null,
|
||||||
|
"text/x-dylan": null,
|
||||||
|
"text/x-ebnf": null,
|
||||||
|
"text/x-ecl": null,
|
||||||
|
"text/x-eiffel": null,
|
||||||
|
"text/x-elm": null,
|
||||||
|
"text/x-erlang": null,
|
||||||
|
"text/x-esper": null,
|
||||||
|
"text/x-factor": null,
|
||||||
|
"text/x-fcl": null,
|
||||||
|
"text/x-feature": null,
|
||||||
|
"text/x-forth": null,
|
||||||
|
"text/x-fortran": null,
|
||||||
|
"text/x-fsharp": null,
|
||||||
|
"text/x-gas": null,
|
||||||
|
"text/x-gdscript": null,
|
||||||
|
"text/x-gfm": null,
|
||||||
|
"text/x-go": null,
|
||||||
|
"text/x-groovy": null,
|
||||||
|
"text/x-gss": null,
|
||||||
|
"text/x-haml": null,
|
||||||
|
"text/x-haskell": null,
|
||||||
|
"text/x-haxe": null,
|
||||||
|
"text/x-hcl": null,
|
||||||
|
"text/x-hxml": null,
|
||||||
|
"text/x-idl": null,
|
||||||
|
"text/x-java": null,
|
||||||
|
"text/x-julia": null,
|
||||||
|
"text/x-kotlin": null,
|
||||||
|
"text/x-latex": null,
|
||||||
|
"text/x-less": null,
|
||||||
|
"text/x-literate-haskell": null,
|
||||||
|
"text/x-livescript": null,
|
||||||
|
"text/x-lua": null,
|
||||||
|
"text/x-mariadb": null,
|
||||||
|
"text/x-markdown": null,
|
||||||
|
"text/x-mathematica": null,
|
||||||
|
"text/x-modelica": null,
|
||||||
|
"text/x-mscgen": null,
|
||||||
|
"text/x-msgenny": null,
|
||||||
|
"text/x-mssql": null,
|
||||||
|
"text/x-mumps": null,
|
||||||
|
"text/x-mysql": null,
|
||||||
|
"text/x-nix": null,
|
||||||
|
"text/x-nginx-conf": null,
|
||||||
|
"text/x-nsis": null,
|
||||||
|
"text/x-objectivec": null,
|
||||||
|
"text/x-ocaml": null,
|
||||||
|
"text/x-octave": null,
|
||||||
|
"text/x-oz": null,
|
||||||
|
"text/x-pascal": null,
|
||||||
|
"text/x-perl": null,
|
||||||
|
"text/x-pgsql": null,
|
||||||
|
"text/x-php": null,
|
||||||
|
"text/x-pig": null,
|
||||||
|
"text/x-plsql": null,
|
||||||
|
"text/x-properties": null,
|
||||||
|
"text/x-protobuf": null,
|
||||||
|
"text/x-pug": null,
|
||||||
|
"text/x-puppet": null,
|
||||||
|
"text/x-python": null,
|
||||||
|
"text/x-q": null,
|
||||||
|
"text/x-rpm-changes": null,
|
||||||
|
"text/x-rpm-spec": null,
|
||||||
|
"text/x-rsrc": null,
|
||||||
|
"text/x-rst": null,
|
||||||
|
"text/x-ruby": null,
|
||||||
|
"text/x-rustsrc": null,
|
||||||
|
"text/x-sas": null,
|
||||||
|
"text/x-sass": null,
|
||||||
|
"text/x-scala": null,
|
||||||
|
"text/x-scheme": null,
|
||||||
|
"text/x-scss": null,
|
||||||
|
"text/x-sh": null,
|
||||||
|
"text/x-slim": null,
|
||||||
|
"text/x-smarty": null,
|
||||||
|
"text/x-sml": null,
|
||||||
|
"text/x-solr": null,
|
||||||
|
"text/x-soy": null,
|
||||||
|
"text/x-spreadsheet": null,
|
||||||
|
"text/x-sql": null,
|
||||||
|
"text/x-sqlite;schema=trilium": null,
|
||||||
|
"text/x-sqlite": null,
|
||||||
|
"text/x-squirrel": null,
|
||||||
|
"text/x-stex": null,
|
||||||
|
"text/x-stsrc": null,
|
||||||
|
"text/x-styl": null,
|
||||||
|
"text/x-swift": null,
|
||||||
|
"text/x-systemverilog": null,
|
||||||
|
"text/x-tcl": null,
|
||||||
|
"text/x-textile": null,
|
||||||
|
"text/x-tiddlywiki": null,
|
||||||
|
"text/x-toml": null,
|
||||||
|
"text/x-tornado": null,
|
||||||
|
"text/x-ttcn-asn": null,
|
||||||
|
"text/x-ttcn-cfg": null,
|
||||||
|
"text/x-ttcn": null,
|
||||||
|
"text/x-twig": null,
|
||||||
|
"text/x-vb": null,
|
||||||
|
"text/x-verilog": null,
|
||||||
|
"text/x-vhdl": null,
|
||||||
|
"text/x-vue": null,
|
||||||
|
"text/x-webidl": null,
|
||||||
|
"text/x-xu": null,
|
||||||
|
"text/x-yacas": null,
|
||||||
|
"text/x-yaml": null,
|
||||||
|
"text/x-z80": null,
|
||||||
|
"text/xml": null,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default byMimeType;
|
Loading…
x
Reference in New Issue
Block a user