1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop, Mobile: Fixed note renderer asset caching issue

This commit is contained in:
Laurent Cozic
2020-02-12 10:17:15 +00:00
parent d02488f00c
commit ea75f65e35
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
function addContextAssets(context) {
function addContextAssets(context:any) {
if ('mermaid' in context.pluginAssets) return;
context.pluginAssets['mermaid'] = [
@@ -12,6 +12,7 @@ function addContextAssets(context) {
];
}
// @ts-ignore: Keep the function signature as-is despite unusued arguments
function installRule(markdownIt:any, mdOptions:any, ruleOptions:any, context:any) {
const defaultRender:Function = markdownIt.renderer.rules.fence || function(tokens:any[], idx:number, options:any, env:any, self:any) {
return self.renderToken(tokens, idx, options, env, self);