mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 09:52:41 +00:00
Update shared/naturalcrit/markdown.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c6d8bbae16
commit
8d94e5fbe0
@@ -209,7 +209,7 @@ const mustacheInjectBlock = {
|
|||||||
const superSubScripts = {
|
const superSubScripts = {
|
||||||
name : 'superSubScripts',
|
name : 'superSubScripts',
|
||||||
level : 'inline',
|
level : 'inline',
|
||||||
start(src) { return src.match(/\^\^[^\s].+[^\s]\^\^/m)?.index; }, // Hint to Marked.js to stop and check for a match
|
start(src) { return src.match(/\^\^/m)?.index; }, // Hint to Marked.js to stop and check for a match
|
||||||
tokenizer(src, tokens) {
|
tokenizer(src, tokens) {
|
||||||
const superRegex = /^\^\^(?!\s)(?=([^\n\^]*[^\s\^]))\1\^\^/m;
|
const superRegex = /^\^\^(?!\s)(?=([^\n\^]*[^\s\^]))\1\^\^/m;
|
||||||
const subRegex = /^\^\^\^([^\s\^][^\^]*[^\s\^])\^\^\^/m;
|
const subRegex = /^\^\^\^([^\s\^][^\^]*[^\s\^])\^\^\^/m;
|
||||||
|
|||||||
Reference in New Issue
Block a user