thombruce / notes-app

📝 In-browser and offline notes app built on Vue.js.
MIT License
0 stars 0 forks source link

Todos, Tables and Markdown Support #12

Open thombruce opened 3 years ago

thombruce commented 3 years ago

More headers is easily implemented. We don't need to list the options in the menu, necessarily, since they will be accessible via Markdown shortcuts. We just need to enable them. Currently support H1, H2, H3, but we should add H4, H5 and H6 as options for the markdown shortcut mode too.

Todos are... I've implemented them before but the default todos in Tiptap are not easily translated to Markdown. It's not an issue, per se, but I would like to introduce Markdown support at some point. The solution is to write a custom Todo implementation that could be better handled by an existing HTML->Markdown parser. Note: Todos aren't a typical feature of Markdown, but are part of GitHub Flavoured Markdown (GFM).

Tables are more complicated and have a similar problem to Todos in terms of Markdown support. I haven't given them any previous consideration...

These are just first considerations, but there's more yet to be considered:

The more fancy features get added, the further from being able to represent the document in Markdown we get. This is a problem for an Article editing software I intend to make based on this... I would like those to be able to convert to Markdown. However... considering that Markdown is an HTML superset, we can just invoke charts as HTML. The problem then is... when someone exports a document, they will also need their publishing solution to be able to handle and display that complex HTML (for charts, for instance).

thombruce commented 3 years ago

Additional header sizes added by 3f0d904c724811298d67b5238fc016c1d96a3530