-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown for description #381
Conversation
Vue Showdown looks promising at a glance. NC Text (being the main official NC app that utilizes markdown, I imagine) uses markdown-it, but my impression is that they have not completely settled on a rendering library yet. So treading carefully and enabling only basic markdown syntax would probably be the best way to go for now, to avoid causing confusion with different sets of features in different apps. |
What do you mean by enabling only the basic Markdown syntax? We can talk about the config in the main.js. |
I mean that the 'github' flavor set for the editor supports at least two features that I believe NC Text does not: tables and emojis. Enabling features that are not available in other NC apps could cause confusion when, for example, copying and pasting content from one app to another. Just saying we should be mindful of this. |
That makes sense. I will work on the settings again. @sam-19: A bit offtopic, but could you take a look at my repo in the NewRecipeScraper branch to see if it would be possible to add this? |
I agree that we should clearly define the set of Markdown commands. Maybe we can consider using MultiMarkdown, which is also rather widespread? |
Wow, that's quite a bit to look at! There are some things that I'm not familiar with, but using a javascript parser for recipes is not something I would have a problem with (and I wouldn't mind being able to import recipes from my favorite recipe site allrecipes.org!). @christianlupus is really the guy to talk to though, since he's more familiar with the current parser. Maybe you should open an issue or PR for discussion, so this one won't get derailed? |
The problem is that it doesn't work properly because there are CORS problems with the fetch. I was hoping you could help. |
With Vue-Showdown most options like table or emoji are disabled by default. For Style we could use Vanilla or Original instead of GitHub. With these settings we should be close to the Nextcloud Text app or am I wrong? |
I would not worry too much about the set of Markdown commands available. It is merely a question of documentation. No user will open an issue stating that a certain feature has to be removed. I requested formal revieew of @sam-19 to check for correct integration. The question of the flavor might of course be an open discussion, as I think. |
Codecov Report
@@ Coverage Diff @@
## master #381 +/- ##
========================================
Coverage 1.02% 1.02%
Complexity 434 434
========================================
Files 13 13
Lines 1366 1366
========================================
Hits 14 14
Misses 1352 1352
Flags with carried forward coverage won't be shown. Click here to find out more. |
Maybe as a general comment: I don’t know the libraries, (vue) showndown seems to be quite active, v-markdown-editor seems less active (not that many commits, last publish 6 months ago) and also the size is quite big. Assuming they don’t introduce any security holes, we could just keep it the way it is done here. This would be the quickest way. In the long term we could also replace v-markdown-editor by a custom component that also uses showndown to reduce the dependencies and app size. If @TheMBeat doesn’t have the time to add the CSS necessary to enable the controls in the editor, atm, we could just merge this for now to enable Markdown rendering. |
Hey @seyfeb my time is very limited. Also, I'm not very strong in CSS and had tried to use the toolbar on the first commit and failed, so it's disabled. |
Signed-off-by: thembeat <thembeat@gmx.de> Signed-off-by: Christian Wolf <github@christianwolf.email> Signed-off-by: Marcel Auclair <thembeat@gmx.de>
Update URL Update Text Signed-off-by: thembeat <thembeat@gmx.de> Signed-off-by: Christian Wolf <github@christianwolf.email> Signed-off-by: Marcel Auclair <thembeat@gmx.de>
Signed-off-by: Christian Wolf <github@christianwolf.email> Signed-off-by: Marcel Auclair <thembeat@gmx.de>
Signed-off-by: Marcel Auclair <thembeat@gmx.de>
Signed-off-by: Marcel Auclair <thembeat@gmx.de>
No description provided.