1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/**
* External dependencies
*/
import { __, _x } from '@wordpress/i18n';
import { ExternalLink, Path, Rect, SVG } from '@wordpress/components';
import { Fragment } from '@wordpress/element';
/**
* Internal dependencies
*/
import './editor.scss';
import edit from './edit';
import save from './save';
export const name = 'markdown';
export const settings = {
title: __( 'Markdown', 'jetpack' ),
description: (
<Fragment>
<p>
{ __(
'Use regular characters and punctuation to style text, links, and lists.',
'jetpack'
) }
</p>
<ExternalLink href="https://en.support.wordpress.com/markdown-quick-reference/">
{ __( 'Support reference', 'jetpack' ) }
</ExternalLink>
</Fragment>
),
icon: (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 128">
<Rect
width="198"
height="118"
x="5"
y="5"
ry="10"
stroke="currentColor"
strokeWidth="10"
fill="none"
/>
<Path d="M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z" />
</SVG>
),
category: 'jetpack',
keywords: [
_x( 'formatting', 'block search term', 'jetpack' ),
_x( 'syntax', 'block search term', 'jetpack' ),
_x( 'markup', 'block search term', 'jetpack' ),
],
attributes: {
//The Markdown source is saved in the block content comments delimiter
source: { type: 'string' },
},
supports: {
html: false,
},
edit,
save,
};
|