Repository navigation
Preserve HTML newlines and add support for newlines within table cells - #3504
Merged
Merged
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Failures
Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
||||||||||||||||||||||||||||||||||
susnux
force-pushed
the
feat/table-newline
branch
from
December 1, 2022 11:09
833b0fd to
63b0f5f
Compare
Contributor
Author
|
/compile |
susnux
requested review from
juliusknorr,
max-nextcloud and
vinicius73
and removed request for
max-nextcloud
December 1, 2022 11:10
Contributor
Yay! 🎉Screencast looks really good. Will check out code and then rebase etc. |
max-nextcloud
approved these changes
Dec 5, 2022
max-nextcloud
left a comment
Contributor
There was a problem hiding this comment.
Code looks good. Also tested copy and paste between table cells.
| * Add information about used markdown syntax to HTML hard breaks | ||
| * | ||
| * @param {object} md Markdown object | ||
| * @param {import('markdown-it')} md Markdown object |
Contributor
There was a problem hiding this comment.
uhh... nice. I learned something today. 😄
* Pressing enter will create a newline * Pressing enter twice will move into the next row instead (like before) * This is implemented using HTML newlines (`<br>`), to do so markdown-it support is added because we generally disabled HTML Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
max-nextcloud
force-pushed
the
feat/table-newline
branch
from
December 5, 2022 12:14
c5bc0d8 to
5245b2a
Compare
Contributor
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
First of all this allows adding line breaks inside of table cells, for this we can not use the normal markdown syntax so as markdown is a superset of HTML it is common to use
<br>tags for this.But as be disabled HTML for security reasons, this PR introduces a special markdown-it parser only enabling
<br>HTML tags.Meaning at least support for
<br>is added (tiny part of #2170).About UX:
🖼️ Screenshots
a.mp4
🚧 TODO
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)