3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Answer the stability nits: the spellings a position hint names, and the fault its name owns

This commit is contained in:
2026-09-02 12:28:21 +02:00
parent fdbcbd6fb7
commit a5877a8fd5
5 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function readDirectiveMark(name: string, attributes: DirectiveAttributes,
return success(Object.keys(attrs.value).length === 0 ? { type: name } : { attrs: attrs.value, type: name })
}
export function markSpellingFault(name: string): ConvertFault | undefined {
export function inlineMarkSpellingFault(name: string): ConvertFault | undefined {
const spelling = markSpelling(name)
if (spelling === undefined) return undefined
return { code: 'unsupported-node-shape', message: `${name} is spelled ${markdownForm(spelling) ?? `:${name}[…]`}, never as a block directive` }