The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: process comments at a text level rather than a markdown level

+8 -12
+8 -12
quartz/plugins/transformers/ofm.ts
··· 163 163 }) 164 164 } 165 165 166 + // do comments at text level 167 + if (opts.comments) { 168 + if (src instanceof Buffer) { 169 + src = src.toString() 170 + } 171 + src.replace(commentRegex, "") 172 + } 173 + 166 174 // pre-transform wikilinks (fix anchors to things that may contain illegal syntax e.g. codeblocks, latex) 167 175 if (opts.wikilinks) { 168 176 if (src instanceof Buffer) { ··· 281 289 return { 282 290 type: "html", 283 291 value: `<span class="text-highlight">${inner}</span>`, 284 - } 285 - }, 286 - ]) 287 - } 288 - 289 - if (opts.comments) { 290 - replacements.push([ 291 - commentRegex, 292 - (_value: string, ..._capture: string[]) => { 293 - return { 294 - type: "text", 295 - value: "", 296 292 } 297 293 }, 298 294 ])