File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,16 @@ Yields:
157
157
### ` Code `
158
158
159
159
` 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
+ of the info string is stored as the language tag, null otherwise)
163
164
164
165
``` idl
165
166
interface Code <: Text {
166
167
type: "code";
167
168
lang: string | null;
169
+ infoString: string | null;
168
170
}
169
171
```
170
172
@@ -180,6 +182,7 @@ Yields:
180
182
{
181
183
"type" : " code" ,
182
184
"lang" : null ,
185
+ "infoString" : null ,
183
186
"value" : " foo()"
184
187
}
185
188
```
You can’t perform that action at this time.
0 commit comments