Skip to content

Commit 97dc8cf

Browse files
devin-ai-integration[bot]fern-supportdevalog
authored
Add documentation for escaping dollar signs in LaTeX (#2522)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Fern Support <info@buildwithfern.com> Co-authored-by: Devin Logan <devinannlogan@gmail.com>
1 parent bffdf1c commit 97dc8cf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

fern/products/docs/pages/component-library/writing-content/markdown-media.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,24 @@ $$
187187
\,d\xi
188188
$$
189189

190+
### Displaying literal dollar signs
191+
192+
Text containing dollar amounts (like prices, budgets, or costs) may unintentionally render as math equations. To display literal dollar signs, escape them with a backslash (`\`):
193+
194+
<div className="highlight-frame">
195+
<div className="highlight-frame-content">
196+
Without escaping: The product costs $10 and shipping is $5
197+
198+
With escaping: The product costs \$10 and shipping is \$5
199+
</div>
200+
</div>
201+
202+
203+
```markdown Markdown wordWrap
204+
Without escaping: The product costs $10 and shipping is $5
205+
With escaping: The product costs \$10 and shipping is \$5
206+
```
207+
190208
## Diagrams
191209
Fern supports creating diagrams within your Markdown using [Mermaid](https://mermaid.js.org/). Mermaid offers a variety of diagrams, including flowcharts, entity-relationship models, and Gantt charts. To include a Mermaid diagram in your Markdown file, create a codeblock marked with `mermaid`.
192210

0 commit comments

Comments
 (0)