Files
NapCatQQ/.pnpm-store/v3/files/88/a5069579f43fca5ac5f87c6af74df6642a52eb9f20b3ef0799fce37ae48be4324af98eedbfaad4bd5c094cb901e1c40a290ea685ac083a84acef3d780c6018
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
472 B
Plaintext

/**
* @import {Options, State} from 'mdast-util-to-markdown'
*/
/**
* @param {State} state
* @returns {Exclude<Options['bulletOrdered'], null | undefined>}
*/
export function checkBulletOrdered(state) {
const marker = state.options.bulletOrdered || '.'
if (marker !== '.' && marker !== ')') {
throw new Error(
'Cannot serialize items with `' +
marker +
'` for `options.bulletOrdered`, expected `.` or `)`'
)
}
return marker
}