mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
feat(frontend): add fork awesome linter
This linter will tell users that their fork awesome icon is deprecated and will stop working in the future and that they should replace it with a new bootstrap icon. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
e2c4e2eccf
commit
16b1065a51
4 changed files with 21 additions and 17 deletions
|
@ -8,7 +8,7 @@ import { SingleLineRegexLinter } from '../../../components/editor-page/editor-pa
|
|||
import { AppExtension } from '../../base/app-extension'
|
||||
import { t } from 'i18next'
|
||||
|
||||
export const forkAwesomeRegex = /<i class=["']fa fa-[\w-]+["'](?: aria-hidden=["']true["'])?\/?>(?:<\/i>)?/
|
||||
const forkAwesomeRegex = /<i class=["'][\w\s]*fa-[\w-]+[\w\s-]*["'][^>]*\/?>(?:<\/i>)?/
|
||||
|
||||
/**
|
||||
* Adds support for flow charts to the markdown rendering.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue