diff --git a/modules/markdown/assets/css/jetpack-markdown-block.css b/modules/markdown/assets/css/jetpack-markdown-block.css
index 4064d5921caf0..4b2704854b621 100644
--- a/modules/markdown/assets/css/jetpack-markdown-block.css
+++ b/modules/markdown/assets/css/jetpack-markdown-block.css
@@ -1,3 +1,4 @@
+
.wp-block-jetpack-markdown-block-placeholder {
opacity: 0.5;
pointer-events: none;
@@ -5,3 +6,7 @@
.wp-block-jetpack-markdown-block-live-preview p {
min-height: 1.8em;
}
+.wp-block-jetpack-markdown-block__live-preview__token {
+ /* $dark-gray-300 from Gutenberg _colors.scss */
+ color: #6c7781;
+}
diff --git a/modules/markdown/assets/js/components/markdown-live-preview.jsx b/modules/markdown/assets/js/components/markdown-live-preview.jsx
index e8d19f40c9391..072dfd9d0154f 100644
--- a/modules/markdown/assets/js/components/markdown-live-preview.jsx
+++ b/modules/markdown/assets/js/components/markdown-live-preview.jsx
@@ -27,26 +27,27 @@ const markdownIt = new MarkdownIt( 'zero' ).enable( [
* to each token's content, the delimiter the user used (which the parser
* obviously removes in the resulting HTML)
*/
+const LIVE_PREVIEW_TOKEN_CSS_CLASS = 'wp-block-jetpack-markdown-block__live-preview__token';
// Adds `_` or `*` to the beginning of the em tag
markdownIt.renderer.rules.em_open = function( tokens, idx ) {
const token = tokens[ idx ];
- return `${ token.markup }`;
+ return `${ token.markup }`;
};
// Adds `_` or `*` to the end of the em tag
markdownIt.renderer.rules.em_close = function( tokens, idx ) {
const token = tokens[ idx ];
- return `${ token.markup }`;
+ return `${ token.markup }`;
};
// Adds `__` or `**` to the beginning of the strong tag
markdownIt.renderer.rules.strong_open = function( tokens, idx ) {
const token = tokens[ idx ];
- return `${ token.markup }`;
+ return `${ token.markup }`;
};
// Adds `__` or `**` to the end of the strong tag
markdownIt.renderer.rules.strong_close = function( tokens, idx ) {
const token = tokens[ idx ];
- return `${ token.markup }`;
+ return `${ token.markup }`;
};
// Wraps inline code tokens with ```
markdownIt.renderer.rules.code_inline = function( tokens, idx ) {
@@ -61,7 +62,7 @@ markdownIt.renderer.rules.heading_open = function( tokens, idx ) {
if ( text_token ) {
text_token.content = ` ${ text_token.content }`;
}
- return `<${ token.tag }>${ token.markup }`;
+ return `<${ token.tag }>${ token.markup }`;
};
const renderHTML = function( source ) {