diff --git a/readme.md b/readme.md index eccd106..d4b16fa 100644 --- a/readme.md +++ b/readme.md @@ -157,14 +157,17 @@ Yields: ### `Code` `Code` ([`Text`][text]) occurs at block level (see -[`InlineCode`][inlinecode] for code spans). `Code` sports a language -tag (when using GitHub Flavoured Markdown fences with a flag, `null` -otherwise). +[`InlineCode`][inlinecode] for code spans). `Code` supports an +info string and a language tag (when the line with the opening fence +contains some text, it is stored as the info string, the first word +following the fence is stored as the language tag, the rest of the +line is stored as the info string, both are null if missing) ```idl interface Code <: Text { type: "code"; lang: string | null; + info: string | null; } ``` @@ -180,6 +183,7 @@ Yields: { "type": "code", "lang": null, + "info": null, "value": "foo()" } ```