Compare commits

...

2 Commits

Author SHA1 Message Date
ea133cb0a7
0.3.4 2023-06-10 17:40:17 -07:00
dff6c31481
add support for http QUERY method in prism 2023-06-10 17:40:10 -07:00
4 changed files with 8 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@doc-utils/markdown2html",
"version": "0.3.3",
"version": "0.3.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@doc-utils/markdown2html",
"version": "0.3.3",
"version": "0.3.4",
"dependencies": {
"bytefield-svg": "^1.6.1",
"dompurify": "^2.3.6",

View File

@ -1,6 +1,6 @@
{
"name": "@doc-utils/markdown2html",
"version": "0.3.3",
"version": "0.3.4",
"publishConfig": {
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
},

4
src/prism/http.ts Normal file
View File

@ -0,0 +1,4 @@
import { languages } from 'prismjs';
languages.http['request-line'].pattern = /^(?:CONNECT|DELETE|GET|HEAD|QUERY|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m;

View File

@ -4,6 +4,7 @@ import load_languages = require('prismjs/components/index');
load_languages();
require('./wasm');
require('./http');
// hooks.add('after-tokenize', (env) => {
// //