ackee connector wip, mdx code fix

This commit is contained in:
2022-11-14 12:57:47 +03:00
parent 5ce8899922
commit 4b2f185986
3 changed files with 48 additions and 2 deletions

View File

@@ -285,13 +285,13 @@ def prepare_md_body(entry):
if "title" in m:
trackname += m.get("title", "")
addon += (
'<MusicPlayer src="'
'<AudioPlayer src="'
+ m.get("fileUrl", "")
+ '" title="'
+ trackname
+ '" />\n'
)
body = "import MusicPlayer from '$/components/Article/MusicPlayer'\n\n" + addon
body = "import AudioPlayer from '$/components/Article/AudioPlayer'\n\n" + addon
body_orig, media = extract_html(entry)
if body_orig: