-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid dollar symbol inline math (#194)
Inline math via dollar symbols can conflict with using dollar symbols for representing dollars. Fixing this by escaping dollars is not an option since it is hard to run KaTeX and unescape dollars in Javascript (see also #193). So instead of fixing the dollars for representing currency, this patch fixes the dollar for representing inline math by converting the dollars to `\(` and `\)`. This is also how Franklin.jl handles it. In other words, Franklin.jl also converts dollar symbols for inline math to `\(` and `\)`. ## Tasks - [x] Add test to verify that Pluto.jl returns `<span class="tex">$x$</span>` for `$x$`. - [x] Verify that Documenter.jl also interprets `\(` and `\)` as inline math.
- Loading branch information
1 parent
26bf861
commit 7c998c9
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c998c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
Allows using dollar symbols to represent the currency while also allowing inline math, see #194 for more information.
7c998c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/108779
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: