1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-08 23:07:32 +02:00

All: Resolves #163: Added Mermaid support to desktop and mobile

This commit is contained in:
Laurent Cozic
2019-02-28 00:21:40 +00:00
parent e841ea8a91
commit a0e5947ba4
8 changed files with 39 additions and 384 deletions

View File

@@ -1,3 +1,8 @@
// React Native WebView cannot load external JS files, however it can load
// arbitraty JS via the injectedJavaScript property. So we use this to load external
// files: First here we convert the JS file to a plain string, and that string
// is then loaded by eg. the Mermaid plugin, and finally injected in the WebView.
const fs = require('fs-extra');
const cwd = process.cwd();