Skip to content

Commit

Permalink
fix(metabind): another fix for metabind cursed html
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Aug 7, 2024
1 parent fee1361 commit d683e18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/pluginFix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export function fixMetaBindCopy(html: string) {
/<code class="mb-view mb-view-inline"><div class="mb-view-wrapper mb-view-text mb-view-type-math">(.*?)<\/div><\/code>/gim,
"$1"
)
.replace(
/<div class="block-language-meta-bind-embed-internal-1"><div class="block-language-meta-bind-js-view mb-view"><div class="mb-view-wrapper"><p dir="auto">(.*)<\/p>/gim,
"$1"
)
.replace(/<pre class="frontmatter language-yaml cm-s-obsidian .*"/gim, "")
.replace(/<div class="block-language-meta-bind-embed-internal-1">(.*)/gim, "")
.replace(/<span class="cm-atom">.*<\/span><span class="cm-meta">(.*)/gim, "")
Expand Down

0 comments on commit d683e18

Please sign in to comment.