- {{ $t('config.plugins_set.catalog_empty') }} -
- -
+ {{
+ $t('config.plugins_set.market_hint')
+ }}
+
{{ error }}
++ {{ selected.description }} +
+one two
three
'], + ['- a\n- b', 'text
b and i
'], + ['__b__ _i_ media_id', 'b i media_id
'], + ['use `a **b**`', 'use a **b**
id = 1 # *x*\n\n<b>',
+ ],
+ ['```\nopen', 'open'],
+ [
+ '[docs](https://a.io/x_y_z)',
+ '',
+ ],
+ ])('should render %j', (source, html) => {
+ expect(renderMarkdown(source)).toBe(html);
+ });
+
+ it.each([
+ [
+ '',
+ '<script>alert(1)</script>
', + ], + [ + '<img src=x onerror="alert(1)">
', + ], + ['[x](javascript:alert(1))', 'x)
'], + ['[x](JavaScript:alert`1`)', 'x
'], + ['[x](data:text/html,hi)', 'x
'], + ['', 'pic
'], + ['#