This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 829
LaTeX rendering in element-web using KaTeX #5244
Merged
Merged
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0604c86
added katex package and import
akissinger becc79d
send tex math as data-mx-maths attribute
akissinger e78734b
Deserialize back to math delimiters for editing
akissinger 428a6b9
math off by default, enable with latex_maths flag
akissinger e4448ae
send fallback in pre tags, not code
akissinger 7e6d705
Revert "send fallback in pre tags, not code" (code looks better)
akissinger 1f24b5b
made math display slightly larger
akissinger 24a1834
support multi-line and escaped $
akissinger 4df8754
allow custom latex delimiters in config.json
akissinger 1b689bb
tell markdown to ignore math tags
akissinger aded3c9
cosmetic changes (lint)
akissinger d2054ea
HTML output for cross-browser support
akissinger 65c4460
whitespace fixes
akissinger 919a1a8
only allow code tags inside math tag
akissinger 96742fc
latex math as labs setting
akissinger a89adb8
i18n en+nl for latex math labs setting
akissinger aafaf34
Merge branch 'develop' into katex
akissinger bdd332c
ran yarn i18n
akissinger f0c4473
tell markdown parser to ignore properly-formatted math tags
akissinger 38d1aac
removed useless import and whitespace
akissinger cc713af
add fallback output in code block AFTER markdown processing
akissinger 10b7321
use html parser rather than regexes
akissinger 173d798
added cheerio as explicit dep in package.json
akissinger 06b20fa
removed implicit "this"
akissinger 4536f51
Merge branch 'develop' into katex
akissinger 2204e6c
generate valid block html for commonmark spec
akissinger 3f9f1d0
stubbed isGuest for unit tests
akissinger 839bae2
made single and double $ default delimiters
akissinger 5f3af78
Merge branch 'develop' into katex
akissinger 8233ce7
fixed duplicate import from merge
akissinger ca9e43f
reverted translation
akissinger dacef10
reverted US translation
akissinger 7013483
UK spelling maths
akissinger 494ae3e
parse html for latex rendering inside settings block
akissinger 79baea9
fixed indent
akissinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Note to the next reviewer: cheerio is already pulled in by another dependency, so this isn't adding a new dependency, but is added here because it is now being used by
HtmlUtils