File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,17 @@ Yields:
157157### ` Code `
158158
159159` Code ` ([ ` Text ` ] [ text ] ) occurs at block level (see
160- [ ` InlineCode ` ] [ inlinecode ] for code spans). ` Code ` sports a language
161- tag (when using GitHub Flavoured Markdown fences with a flag, ` null `
162- otherwise).
160+ [ ` InlineCode ` ] [ inlinecode ] for code spans). ` Code ` supports an
161+ info string and a language tag (when the line with the opening fence
162+ contains some text, it is stored as the info string, the first word
163+ following the fence is stored as the language tag, the rest of the
164+ line is stored as the info string, both are null if missing)
163165
164166``` idl
165167interface Code <: Text {
166168 type: "code";
167169 lang: string | null;
170+ info: string | null;
168171}
169172```
170173
@@ -180,6 +183,7 @@ Yields:
180183{
181184 "type" : " code" ,
182185 "lang" : null ,
186+ "info" : null ,
183187 "value" : " foo()"
184188}
185189```
You can’t perform that action at this time.
0 commit comments