(fleeting notes) init fleeting notes

This commit is contained in:
2021-03-20 22:00:37 +01:00
parent a8cc196508
commit 11d25e25af
9 changed files with 112 additions and 37 deletions

View File

@@ -13,6 +13,7 @@ const md = new MarkdownIt().use(markdownItClass, {
export const useMarkdown = () => {
return {
renderString: (content: string) => md.render(content),
render: (content: string) =>
md.render(decodeURIComponent(escape(atob(content))))
}