mirror of
https://github.com/alrayyes/wiki.git
synced 2025-07-09 03:26:34 +00:00
fix: clean wikilinks and render latex in popover
This commit is contained in:
parent
364aee36fc
commit
b21b27d1d3
4 changed files with 31 additions and 19 deletions
assets/js
|
@ -39,6 +39,7 @@ const removeMarkdown = (
|
|||
.replace(/\s{0,2}\[.*?\]: .*?$/g, '')
|
||||
.replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g, options.useImgAltText ? '$1' : '')
|
||||
.replace(/\[(.*?)\][\[\(].*?[\]\)]/g, '$1')
|
||||
.replace(/!?\[\[\S[^\[\]\|]*(?:\|([^\[\]]*))?\S\]\]/g, '$1')
|
||||
.replace(/^\s{0,3}>\s?/g, '')
|
||||
.replace(/(^|\n)\s{0,3}>\s?/g, '\n\n')
|
||||
.replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g, '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue