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