Skip to content

Commit

Permalink
Fix, a ' symbol in the title
Browse files Browse the repository at this point in the history
Fix, when there is a ' symbol in the title, the format of the generated json is wrong
  • Loading branch information
xeden3 authored Apr 12, 2023
1 parent 8d4afd9 commit cddbe6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ joplin.plugins.register({
case 'edit':
let diagramResource = await getDiagramResource(request.diagramId);
let data_json = diagramResource.data_json;
data_json = data_json.replace(/\'/g, "\\u0027");
await open_edit_dlg(data_json, request.diagramId, "edit");
return
case 'check':
Expand Down

0 comments on commit cddbe6f

Please sign in to comment.