mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
Load abcjs from npm package
This also loads abcjs without script-loader. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
fddd97391b
commit
fa1ed66088
5 changed files with 30 additions and 22 deletions
|
@ -20,6 +20,7 @@ import Plugin from 'markdown-it-regexp'
|
|||
import mermaid from 'mermaid'
|
||||
import handlebars from 'handlebars'
|
||||
import 'gist-embed'
|
||||
import abcjs from 'abcjs'
|
||||
|
||||
require('prismjs/themes/prism.css')
|
||||
require('prismjs/components/prism-wiki')
|
||||
|
@ -415,7 +416,7 @@ export function finishView (view) {
|
|||
$value = $(value)
|
||||
const $ele = $(value).parent().parent()
|
||||
|
||||
window.ABCJS.renderAbc(value, $value.text())
|
||||
abcjs.renderAbc(value, $value.text())
|
||||
|
||||
$ele.addClass('abc')
|
||||
$value.children().unwrap().unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue