mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
added support for markdown-it-abbr (#238)
this makes it possible to use abbreviations like these ``` *[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium The HTML specification is maintained by the W3C. ``` Co-authored-by: Philip Molares <philip@mauricedoepke.de>
This commit is contained in:
parent
09c21e4334
commit
4852727f92
4 changed files with 14 additions and 0 deletions
|
@ -2,6 +2,7 @@ import MarkdownIt from 'markdown-it'
|
|||
import emoji from 'markdown-it-emoji'
|
||||
import markdownItRegex from 'markdown-it-regex'
|
||||
import taskList from 'markdown-it-task-lists'
|
||||
import abbreviation from 'markdown-it-abbr'
|
||||
import definitionList from 'markdown-it-deflist'
|
||||
import subscript from 'markdown-it-sub'
|
||||
import superscript from 'markdown-it-sup'
|
||||
|
@ -40,6 +41,7 @@ const MarkdownPreview: React.FC<MarkdownPreviewProps> = ({ content }) => {
|
|||
})
|
||||
md.use(taskList)
|
||||
md.use(emoji)
|
||||
md.use(abbreviation)
|
||||
md.use(definitionList)
|
||||
md.use(subscript)
|
||||
md.use(superscript)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue