diff --git a/less/prose-editor.less b/less/prose-editor.less index fc8e8ba..768c078 100644 --- a/less/prose-editor.less +++ b/less/prose-editor.less @@ -293,7 +293,8 @@ li.ProseMirror-selectednode:after { .ProseMirror blockquote { padding-left: 1em; - border-left: 3px solid #eee; + border-left: 4px solid #ddd; + color: #767676; margin-left: 0; margin-right: 0; } diff --git a/prose/markdownParser.js b/prose/markdownParser.js index 1ee5a07..30669d9 100644 --- a/prose/markdownParser.js +++ b/prose/markdownParser.js @@ -7,7 +7,7 @@ export const writeFreelyMarkdownParser = new MarkdownParser( writeFreelySchema, markdownit("commonmark", { html: true }), { - // blockquote: { block: "blockquote" }, + blockquote: { block: "blockquote" }, paragraph: { block: "paragraph" }, list_item: { block: "list_item" }, bullet_list: { block: "bullet_list" }, diff --git a/prose/markdownSerializer.js b/prose/markdownSerializer.js index 9615633..6ccf6bc 100644 --- a/prose/markdownSerializer.js +++ b/prose/markdownSerializer.js @@ -32,9 +32,9 @@ export const writeFreelyMarkdownSerializer = new MarkdownSerializer( state.write("\n"); state.closeBlock(node); }, - // blockquote(state, node) { - // state.wrapBlock("> ", undefined, node, () => state.renderContent(node)); - // }, + blockquote(state, node) { + state.wrapBlock("> ", null, node, () => state.renderContent(node)); + }, code_block(state, node) { state.write(`\`\`\`${node.attrs.params || ""}\n`); state.text(node.textContent, false); diff --git a/prose/schema.js b/prose/schema.js index 0a87662..eeebbd9 100644 --- a/prose/schema.js +++ b/prose/schema.js @@ -3,7 +3,6 @@ import { Schema } from "prosemirror-model"; export const writeFreelySchema = new Schema({ nodes: schema.spec.nodes - .remove("blockquote") .addToEnd("readmore", { inline: false, content: "",