mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 19:01:30 +08:00
feat(code): support mips (closes #1406)
This commit is contained in:
parent
42821d47c8
commit
06d848ba17
@ -98,6 +98,7 @@ export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([
|
|||||||
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true },
|
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true },
|
||||||
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" },
|
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" },
|
||||||
{ title: "mbox", mime: "application/mbox" },
|
{ title: "mbox", mime: "application/mbox" },
|
||||||
|
{ title: "MIPS Assembler", mime: "text/x-asm-mips", highlightJs: "mipsasm" },
|
||||||
{ title: "mIRC", mime: "text/mirc" },
|
{ title: "mIRC", mime: "text/mirc" },
|
||||||
{ title: "Modelica", mime: "text/x-modelica" },
|
{ title: "Modelica", mime: "text/x-modelica" },
|
||||||
{ title: "MS SQL", mime: "text/x-mssql", highlightJs: "sql" },
|
{ title: "MS SQL", mime: "text/x-mssql", highlightJs: "sql" },
|
||||||
|
@ -9,7 +9,8 @@ describe("Markdown export", () => {
|
|||||||
"language-text-x-nginx-conf": "nginx",
|
"language-text-x-nginx-conf": "nginx",
|
||||||
"language-text-x-diff": "diff",
|
"language-text-x-diff": "diff",
|
||||||
"language-application-javascript-env-frontend": "javascript",
|
"language-application-javascript-env-frontend": "javascript",
|
||||||
"language-application-javascript-env-backend": "javascript"
|
"language-application-javascript-env-backend": "javascript",
|
||||||
|
"language-text-x-asm-mips": "mips"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const [ input, output ] of Object.entries(conversionTable)) {
|
for (const [ input, output ] of Object.entries(conversionTable)) {
|
||||||
|
@ -8,7 +8,8 @@ describe("markdown", () => {
|
|||||||
"nginx": "language-text-x-nginx-conf",
|
"nginx": "language-text-x-nginx-conf",
|
||||||
"diff": "language-text-x-diff",
|
"diff": "language-text-x-diff",
|
||||||
"javascript": "language-application-javascript-env-backend",
|
"javascript": "language-application-javascript-env-backend",
|
||||||
"css": "language-text-css"
|
"css": "language-text-css",
|
||||||
|
"mips": "language-text-x-asm-mips"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const [ input, output ] of Object.entries(conversionTable)) {
|
for (const [ input, output ] of Object.entries(conversionTable)) {
|
||||||
|
@ -98,6 +98,7 @@ export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([
|
|||||||
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true },
|
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true },
|
||||||
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" },
|
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" },
|
||||||
{ title: "mbox", mime: "application/mbox" },
|
{ title: "mbox", mime: "application/mbox" },
|
||||||
|
{ title: "MIPS Assembler", mime: "text/x-asm-mips", highlightJs: "mips" },
|
||||||
{ title: "mIRC", mime: "text/mirc" },
|
{ title: "mIRC", mime: "text/mirc" },
|
||||||
{ title: "Modelica", mime: "text/x-modelica" },
|
{ title: "Modelica", mime: "text/x-modelica" },
|
||||||
{ title: "MS SQL", mime: "text/x-mssql", highlightJs: "sql" },
|
{ title: "MS SQL", mime: "text/x-mssql", highlightJs: "sql" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user