Commit 0ff4a9b
authored
HTML encode dollar sign in schema reference (modelcontextprotocol#1485)
Mintlify's Markdown parser treats dollar signs as special characters in
some cases. The exact cause is not clear, but it might be related to
MDX's [LaTeX support](https://mdxjs.com/guides/math/).
An example of this behavior can be seen in the build failure for
[modelcontextprotocol#881][], in which `npm run check:docs:links` failed to parse
`schema.mdx` due to newly introduced `$schema` properties.
This commit modifies the `schema.mdx` generator to HTML encode dollar
signs, thus preventing such parse errors.
[modelcontextprotocol#881]: modelcontextprotocol#8811 parent 46e3277 commit 0ff4a9b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments