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

[Stable25] Backport of #3460 - Fix front matter rendering #3481

Merged
merged 3 commits into from
Nov 24, 2022

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 24, 2022

📝 Summary

Manual backport because command failed: #3460 (comment)

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

If the editor was loaded before the callback did not
write the front matter content to the correct variable
which resulted in dropping the front matter.

This is fixed by not using the callback but a renderer function.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
1. Test if the correct front matter content is displayed
2. Test if the front matter survives closing and reopening the editor

Skip common mark tests which we correctly interpret as front matter

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@cypress
Copy link

cypress bot commented Nov 24, 2022



Test summary

98 0 0 0Flakiness 3


Run details

Project Text
Status Passed
Commit 6a837d7 ℹ️
Started Nov 24, 2022 2:35 PM
Ended Nov 24, 2022 2:42 PM
Duration 07:20 💡
OS Linux Ubuntu - 20.04
Browser Electron 106

View run in Cypress Dashboard ➡️


Flakiness

sections.spec.js Flakiness
1 Content Sections > Heading anchors > Anchor scrolls into view
links.spec.js Flakiness
1 test link marks > link preview > shows a link preview
mentions.spec.js Flakiness
1 Test mentioning users > Type @ and see the user list

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

@juliushaertl
Copy link
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@juliushaertl juliushaertl merged commit fa45df9 into stable25 Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants