/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/muyajs/lib/parser/render/renderInlines/codeFense.js
18 строк
530 B
Ran Luo
chore: convert repo to pnpm monorepo (packages/desktop, muyajs, website) (#4302)
29 май 2026, 05:25
Не верифицирован
29 май 2026, 05:25
565bfcd
Код
Авторство
О чём код?
import { CLASS_OR_ID } from '../../../config' export default function codeFense(h, cursor, block, token, outerClass) { const { start, end } = token.range const { marker } = token const markerContent = this.highlight(h, block, start, start + marker.length, token) const content = this.highlight(h, block, start + marker.length, end, token) return [ h(`span.${CLASS_OR_ID.AG_GRAY}`, markerContent), h(`span.${CLASS_OR_ID.AG_LANGUAGE}`, { attrs: { spellcheck: 'false' } }, content) ] }