File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "id" : " markdown-attributes" ,
33 "name" : " Markdown Attributes" ,
4- "version" : " 1.0.0 " ,
4+ "version" : " 1.0.1 " ,
55 "minAppVersion" : " 0.12.10" ,
66 "description" : " Add markdown attributes to elements in Obsidian.md" ,
77 "author" : " Jeremy Valentine" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " markdown-attributes" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Add markdown attributes to elements in Obsidian.md" ,
55 "main" : " main.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -168,8 +168,11 @@ export default class Processor {
168168 }
169169
170170 // Recursively find all attributes from the children of this element.
171+
171172 for ( let child of Array . from ( el . children ) ) {
172173 if ( ! ( child instanceof HTMLElement ) ) continue ;
174+ if ( child instanceof HTMLPreElement || child . tagName . toLowerCase ( ) === "code" )
175+ continue ;
173176 elements . push ( ...this . recurseAndParseElements ( child ) ) ;
174177 }
175178
Original file line number Diff line number Diff line change 11{
22 "0.0.7" : " 0.12.0" ,
3- "1.0.0 " : " 0.12.0"
3+ "1.0.1 " : " 0.12.0"
44}
You can’t perform that action at this time.
0 commit comments