We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d952a22 commit a6a5d08Copy full SHA for a6a5d08
tools/markdown-to-html/docs-marked-renderer.ts
@@ -64,7 +64,7 @@ export class DocsMarkdownRenderer extends Renderer {
64
* {
65
* "example": "exampleName",
66
* "file": "example-html.html",
67
- * "region": "some-region",
+ * "region": "some-region"
68
* }
69
* ) -->`
70
* turns into
@@ -79,7 +79,7 @@ export class DocsMarkdownRenderer extends Renderer {
79
*/
80
html(html: string) {
81
html = html.replace(exampleCommentRegex, (_match: string, content: string) => {
82
- if (content.startsWith('{')) {
+ if (content.match(/\{[\s\S]*\}/g)) {
83
const {example, file, region} = JSON.parse(content);
84
return `<div material-docs-example="${example}"
85
file="${file}"
0 commit comments