mirror of
https://github.com/mayurankv/Obsidian-Code-Styler.git
synced 2026-07-22 08:10:29 +00:00
Fix link parsing
This commit is contained in:
parent
b3a795cd27
commit
ad86b77a4d
3 changed files with 7 additions and 7 deletions
11
main.js
11
main.js
File diff suppressed because one or more lines are too long
|
|
@ -146,7 +146,7 @@ export function parseCodeblockParameters(parameterLine: string, theme: CodeStyle
|
|||
if (rmdMatch)
|
||||
parameterLine = "title:" + parameterLine;
|
||||
|
||||
const parameterStrings = parameterLine.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
|
||||
const parameterStrings = parameterLine.match(/(?:ref(erence)?:\[\[.*?\]\]|[^\s"']+|"[^"]*"|'[^']*')+/g);
|
||||
if (!parameterStrings)
|
||||
return codeblockParameters;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export async function readingViewCodeblockDecoratingPostProcessor(element: HTMLE
|
|||
return;
|
||||
|
||||
editingEmbeds = editingEmbeds || Boolean(element.matchParent(".cm-embed-block"));
|
||||
console.log(element);
|
||||
const specific = !element.querySelector(".view-content > *");
|
||||
const printing = Boolean(element.querySelector("div.print > *")) || Boolean(element.querySelector("div.slides > *"));
|
||||
if (printing && !plugin.settings.decoratePrint)
|
||||
|
|
|
|||
Loading…
Reference in a new issue