diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 5414c10..8100b30 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,11 +1,11 @@ ') + it('renders safe practical markdown and strips unsafe html', () => { + const html = renderMarkdown('# Plan\n> Note\n1. first\n- [x] done\n\n```js\nconst x = 1\n```\n**bold** [link](https://example.com)\n') expect(html).toContain('

Plan

') + expect(html).toContain('
Note
') + expect(html).toContain('
  1. first
') + expect(html).toContain('type="checkbox" disabled checked') + expect(html).toContain('
const x = 1
') expect(html).toContain('bold') expect(html).toContain('rel="noopener noreferrer"') expect(html).not.toContain('