Skip to content

Commit

Permalink
6.2.7
Browse files Browse the repository at this point in the history
- Fixed issue where accents could cause syntax highlighting to not work
  • Loading branch information
valentine195 committed Aug 20, 2021
1 parent 052be73 commit 3fc08d6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-admonition",
"name": "Admonition",
"version": "6.2.6",
"version": "6.2.7",
"minAppVersion": "0.11.0",
"description": "Admonition block-styled content for Obsidian.md",
"author": "Jeremy Valentine",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-admonition",
"version": "6.2.6",
"version": "6.2.7",
"description": "Admonition block-styled content for Obsidian.md",
"main": "main.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,11 @@ title:
types.forEach((type) => {
if (this.data.syntaxHighlight) {
/** Process from @deathau's syntax highlight plugin */
const [, cmPatchedType] = `${type}`.match(
/^([\w+#-]*)[^\n`]*$/
);
window.CodeMirror.defineMode(
`ad-${type}`,
`ad-${cmPatchedType}`,
(config, options) => {
return window.CodeMirror.getMode({}, "hypermd");
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"4.3.1": "0.12.0",
"4.4.2": "0.12.2",
"5.0.3": "0.12.2",
"6.2.6": "0.12.4"
"6.2.7": "0.12.4"
}

0 comments on commit 3fc08d6

Please sign in to comment.