File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ const nodes: {
436436 title : { default : null } ,
437437 additionalClasses : { default : "" } ,
438438 } ,
439- parseDOM : [
439+ parseDOM : [
440440 {
441441 tag : "a.s-tag" ,
442442 getAttrs ( dom : HTMLElement ) {
@@ -447,7 +447,7 @@ const nodes: {
447447 additionalClasses : Array . from ( dom . classList ) . join ( " " ) ,
448448 tagType : dom . getAttribute ( "tagtype" ) ,
449449 tagName : dom . textContent ,
450- }
450+ } ;
451451 } ,
452452 } ,
453453 ] ,
@@ -458,9 +458,9 @@ const nodes: {
458458 tagType : node . attrs . tagType as string ,
459459 href : node . attrs . href as string ,
460460 title : node . attrs . title as string ,
461- class : `s-tag ${ node . attrs . additionalClasses as string } `
461+ class : `s-tag ${ node . attrs . additionalClasses as string } ` ,
462462 } ,
463- node . attrs . tagName
463+ node . attrs . tagName ,
464464 ] ;
465465 } ,
466466 } ,
Original file line number Diff line number Diff line change @@ -63,12 +63,13 @@ function parse_tag_link(
6363 token . attrSet ( "href" , rendered . link ) ;
6464 token . attrSet ( "title" , rendered . linkTitle ) ;
6565 token . attrSet ( "additionalClasses" , additionalClasses . join ( " " ) ) ;
66- }
67- else {
66+ } else {
6867 // We don't want to crash the parsing process here since we can still display a passable version of the tag link.
6968 // However, we should at least log a console error.
7069 // eslint-disable-next-line no-console
71- console . error ( `Unable to fully render taglink for [${ tagName } ] due to invalid response from options.renderer.` ) ;
70+ console . error (
71+ `Unable to fully render taglink for [${ tagName } ] due to invalid response from options.renderer.`
72+ ) ;
7273 }
7374 }
7475
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ const customMarkdownParserTokens: MarkdownParser["tokens"] = {
119119 tagType : tok . attrGet ( "tagType" ) ,
120120 href : tok . attrGet ( "href" ) ,
121121 additionalClasses : tok . attrGet ( "additionalClasses" ) ,
122- title : tok . attrGet ( "title" )
122+ title : tok . attrGet ( "title" ) ,
123123 } ) ,
124124 } ,
125125
You can’t perform that action at this time.
0 commit comments