Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Max 81ec438427
fix(preview): allow preview for links followed by whitespace
Signed-off-by: Max <max@nextcloud.com>
2024-03-07 12:47:56 +01:00
Max dd12e5aa60
test(preview): do not run commands in Preview md test
They convert the node without changing the content
resulting in an endless loop.

Signed-off-by: Max <max@nextcloud.com>
2024-03-06 19:08:35 +01:00
Max 0d8c165ab8
enh(preview): togglePreview to return false when not possible
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:32 +01:00
Max fe74b7bc66
test(cy): make node test helpers available
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:32 +01:00
Jonas a73f1f339f
test(cypress): Add test to visually compare print view
Compare print view of long document visually using
`cypress-visual-regression` to detect regressions in print view in the
future.

Signed-off-by: Jonas <jonas@freesources.org>
2023-11-29 17:08:39 +01:00
Julius Härtl 09266585c9
ci: Disable service worker
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-10-25 14:23:56 +02:00
Julius Härtl b23327330b tests(cypress): Add code block and mermaid tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-08-30 07:37:30 +02:00
Luka Trovic 9659a11c51 feat: update render markdown for tables
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2023-08-28 05:02:51 +02:00
Max 36f21e6ee2 test(cypress): conflict handling with plain text files
Signed-off-by: Max <max@nextcloud.com>
2023-06-08 20:32:39 +02:00
sneha abba0b2d62 fix: prefix heading ids
Signed-off-by: sneha <rsneha715@gmail.com>
2023-02-21 11:27:37 +01:00
Max ecf9ee61ec fix: flaky sections test
Upload the file with anchors instead of typing it in.

The typing failed in various ways.
Most of the time it would not close the heading
and instead type a lot of `lorem ipsum` headings.

Signed-off-by: Max <max@nextcloud.com>
2022-12-12 11:52:05 +01:00
Bjørn Forsman 7ddfe07447 test: add simple asciidoc mimetype test
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
2022-12-08 19:15:05 +01:00
Ferdinand Thiessen cd39a0deca
Preserve bullet list style and change default to `-`
1. Preserve the bullet style used for lists (also task lists)
2. Set default style to `-`

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-12-07 11:26:52 +01:00
Julius Härtl ca98523365 Add cypress test for direct editing of plain text files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-23 15:24:56 +01:00
Julien Veyssier 3ef0743982
rename cypress attachment tests, add one for media upload
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-09-06 14:44:54 +02:00
Ferdinand Thiessen 22dbde70bc Added tests for the front matter node
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-29 16:07:56 +02:00
Vinicius Reis a555ff0580
(#2097): add link integration tests
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-04-19 18:59:57 -03:00
Max df1deb6c36
fix: preserve td and th attributes
Prosemirror expects colspan, rowspan and the like to calculate the table layout.

Signed-off-by: Max <max@nextcloud.com>
2022-03-31 14:29:22 +02:00
Max 39cf02c6e6
fix: keep tables separate in markdown
Also make sure that table rows are rendered on one line each.

Signed-off-by: Max <max@nextcloud.com>
2022-03-31 14:29:21 +02:00
Max 0afc3236c2
fix: indicator of the task list.
See #2018.

Use tiptap TaskList and TaskItem.

Markdown-it happily mixes tasks and bullet points in the same list.
Tiptap lists are strictly separated.

Split bullet and tasks into BulletList and TaskList in markdown-io.

Just like this will turn into three different lists:

* one
- two
+ three

This will now also turn into three different lists
with the middle one being a task list:

* first list
* [ ] todo
* [x] done
* third list

Signed-off-by: Max <max@nextcloud.com>
2022-03-02 13:26:11 +01:00
Max 69a9acce3a
test: load markdown with commands from .md file
Signed-off-by: Max <max@nextcloud.com>
2022-03-02 13:26:10 +01:00
Julien Veyssier 6a338dbfd3
refs #2049 add cypress test for local image upload
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-07 12:58:10 +01:00
Julien Veyssier 3f1813437a
refs #2049 cypress test: insert image from files
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-07 10:53:00 +01:00
Julius Härtl 08386c96cf
Cypress test skeleton
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-04 11:31:51 +01:00