parent
782ddd28d9
commit
6b003e9cc9
5
main.ts
5
main.ts
|
@ -8,6 +8,11 @@ export default class AutoTypographyPlugin extends Plugin {
|
|||
|
||||
// Go through all text nodes in the rendered HTML
|
||||
while ((currentNode = treeWalker.nextNode())) {
|
||||
// Skip anything inside code blocks
|
||||
if (currentNode.parentElement?.closest("code") != null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let t = currentNode.textContent!;
|
||||
|
||||
// convert triple hyphens to em-dash
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-auto-typography",
|
||||
"name": "Auto-Typography",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Automatically converts ASCII to Unicode typography",
|
||||
"author": "René Puls",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-auto-typography",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "Obsidian plugin that converts ASCII to Unicode typography",
|
||||
"homepage": "https://github.com/kianga/obsidian-auto-typography",
|
||||
"bugs": "https://github.com/kianga/obsidian-auto-typography/issues",
|
||||
|
|
Loading…
Reference in New Issue