mirror of
https://github.com/fmhy/edit.git
synced 2026-02-05 02:31:07 +11:00
chore: linting
This commit is contained in:
parent
9f39e9663d
commit
048fa9e4a8
8 changed files with 35 additions and 49 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { type MarkdownRenderer } from 'vitepress'
|
||||
import type { MarkdownRenderer } from 'vitepress'
|
||||
|
||||
// FIXME: tasky: possibly write less horror jank?
|
||||
export function base64DecodePlugin(md: MarkdownRenderer) {
|
||||
|
|
@ -7,7 +7,7 @@ export function base64DecodePlugin(md: MarkdownRenderer) {
|
|||
// Save the original rule for backticks
|
||||
const defaultRender =
|
||||
md.renderer.rules.code_inline ||
|
||||
function (tokens, idx, options, env, self) {
|
||||
function (tokens, idx, options, _env, self) {
|
||||
return self.renderToken(tokens, idx, options)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
|
|||
contentToken.content.startsWith(':star:')
|
||||
) {
|
||||
return `<li class="starred">`
|
||||
} else {
|
||||
return self.renderToken(tokens, index, options)
|
||||
}
|
||||
return self.renderToken(tokens, index, options)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue