Skip to content
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

Only support markdown in future releases? #224

Closed
Elmari opened this issue Apr 26, 2020 · 12 comments
Closed

Only support markdown in future releases? #224

Elmari opened this issue Apr 26, 2020 · 12 comments

Comments

@Elmari
Copy link
Contributor

Elmari commented Apr 26, 2020

Continuation of the idea of #195: We should perhaps consider supporting only markdown in the future and converting old ubb-sheets to markdown, since markdown formatting seems simpler and more standardized than BB code, at least to me. What are your thoughts on that @strengejacke @RalfBarkow ?

@strengejacke
Copy link
Collaborator

Yes, that was the "long term" goal I had in mind. At startup, the Zettelkasten checks the current data base version (https://github.com/sjPlot/Zettelkasten/blob/master/src/main/java/de/danielluedecke/zettelkasten/tasks/UpdateFileTask.java) and then updates the data base, if required.

We should somehow softly deprecate this, e.g. when user still enters ubb-tags by hand, that these will be converted to markdown when the entry is saved. Internally, we should definitely convert all UBB to markdown when this feature is implemented (to update the database).

@RalfBarkow
Copy link
Collaborator

covertUbbToHtml

@RalfBarkow
Copy link
Collaborator

@Elmari
Copy link
Contributor Author

Elmari commented May 18, 2020

I think the easiest solution would be to convert the ubb code to html (as already implemented) and then convert the html back to markdown (see also flexmark section on that)

@RalfBarkow
Copy link
Collaborator

[…] e.g. when user still enters ubb-tags by hand, that these will be converted to markdown when the entry is saved. Internally, we should definitely convert all UBB to markdown when this feature is implemented (to update the database).

Could we use a common rich text editor and strip down the resulting (X)HTML to the set we want to allow in the Zettelkasten application?

Cf. Issue #131

Could we use something like Quill ?

@Elmari
Copy link
Contributor Author

Elmari commented May 18, 2020

So far it was not planned by Daniel to include a richtext editor (see here). Richtext inserts could also be solved by inserting the copied text as markdown. If we should implement a WYSIWYG editor I would rather use JavaFX instead of JS. We would have to use a JavaFX component to implement JS anyway, which would be fiddly.

@RalfBarkow
Copy link
Collaborator

See gotchamana / CrazyNote for using 3rd party JavaScript library Quill via WebView with Java/Kotlin.

@RalfBarkow
Copy link
Collaborator

RalfBarkow commented Aug 29, 2020

Let me just note, that I plan to expand on this question "Only support markdown in future releases?" at a later point in time. For now, I'd like to mention that I feel the need for a more general solution as to agree upon the one and only format. Given the resent hipe around Roam Research and the revival of Org mode and good old Emacs, one might as well argue for Org mode plain text files as another candidate format.

@alltagsverstand
Copy link

Important question with a view to this topic:
are you guys planning only to completely switch to markdown syntax as default (and maybe only) format? Or does it include the goal to rework the basic structure of the Zettelkasten architecture such that notes will be stored as single text files?

I have no idea of how much of a redesign this would need, so apologize for appearing demanding... 😉 But in my view, this latter solution would make the zkn3 much more future proof as it would easily be possible to migrate from (and to) other apps, as well as to establish an internal linking structure that can be identified by every modern markdown editor or outliner! And it would open up the possibility to share my zettelkasten data with other apps - and maybe even with other people (though at this point this possibility doesn't strike me personally....)

@RalfBarkow
Copy link
Collaborator

RalfBarkow commented Apr 21, 2021

@alltagsverstand
Perhaps it is better not to think of that one format, but to use something like the concatext.

This gives us an unbroken sequence of text without markup or links-- which we call the concatext.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 24, 2024
Copy link

github-actions bot commented Aug 7, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants