1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-10-16 06:27:32 +00:00

Merge branch 'main' into feature/callout

This commit is contained in:
Steffo 2023-11-16 11:37:30 +01:00
commit eec0dace7f

View file

@ -19,7 +19,7 @@ export class MarkdownElement extends CustomElement {
tokenizer: {
// Fix single, double, and triple equals on a single line being interpreted as headings
lheading(src) {
const cap = /^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(={4,}|-{4,}) *(?:\n+|$)/.exec(src);
const cap = /^(?![.+*] )((?:.|\n(?!\s*?\n|[.+*] ))+?)\n {0,3}(={4,}|-{4,}) *(?:\n+|$)/.exec(src);
if (cap) {
return {
type: 'heading',