Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore(web): bump @usememos/editor to 26.10.15

johnnyjoyghaf07ca804cc2
diff --git a/web/package.json b/web/package.json
index c6d5d31a6..29325d0ee 100644
--- a/web/package.json
+++ b/web/package.json
@@ -25,7 +25,7 @@
"@tailwindcss/vite": "^4.2.4",
"@tanstack/react-query": "^5.100.9",
"@tanstack/react-query-devtools": "^5.100.9",
- "@usememos/editor": "26.10.14",
+ "@usememos/editor": "26.10.15",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"copy-to-clipboard": "^4.0.2",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index eae5afcdb..8d3fef515 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -36,8 +36,8 @@ importers:
specifier: ^5.100.9
'@usememos/editor':
- specifier: 26.10.14
+ specifier: 26.10.15
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -1135,8 +1135,8 @@ packages:
'@upsetjs/[email protected]':
resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}
- '@usememos/[email protected]':
- resolution: {integrity: sha512-1qKyBq/aS09y9xXDjjOLRugKlqo9q29sW1xVcBLo6nWb29sxGxpHnwR8Br2YvNT/vOZnQ5bTFGHO8ppTq46woQ==}
+ '@usememos/[email protected]':
+ resolution: {integrity: sha512-DW8kdAiOGiNkllK2PURgiYW3/j+Qb7DPCZDOGtIZTn4K0rwr0fP0odUKj7BWzRM+5x288LLz74BCV/ZdAQRYnA==}
peerDependencies:
react: '>=18'
react-dom: '>=18'
@@ -3262,7 +3262,7 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1([email protected])
optionalDependencies:
react: 19.2.6
react-dom: 19.2.6([email protected])
diff --git a/web/tests/memo-content.test.tsx b/web/tests/memo-content.test.tsx
index 5956e0c33..ff7179ae0 100644
--- a/web/tests/memo-content.test.tsx
+++ b/web/tests/memo-content.test.tsx
@@ -165,12 +165,19 @@ describe("raw HTML", () => {
});
describe("callouts and collapsible sections", () => {
- it("shows a GitHub alert as a callout under its type title", () => {
+ it("shows a GitHub alert as a callout with its type's icon", () => {
const { container } = renderMemo("> [!WARNING]\n> Back up first.");
const callout = container.querySelector('blockquote[data-callout="warning"]');
expect(callout).toHaveTextContent("Back up first.");
expect(callout).not.toHaveTextContent("[!WARNING]");
- expect(callout?.querySelector(".mbe-callout-title")).toHaveTextContent("Warning");
+ expect(callout?.querySelector(".mbe-callout-icon")).toHaveAttribute("aria-label", "Warning");
+ });
+
+ it("renders a list inside a quote", () => {
+ const { container } = renderMemo("> ✏️ **quick note**\n> * Item 1: check xyz\n> * Item 2: check abc");
+ expect(container.querySelector("blockquote strong")).toHaveTextContent("quick note");
+ expect(container.querySelectorAll(".mbe-list-item")).toHaveLength(2);
+ expect(container).not.toHaveTextContent(">");
});
it("renders footnotes, quotes and code inside a collapsible section", () => {