Skip to content

Commit

Permalink
fix: Remove support for lheading rule in message editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nithindavid committed Jan 26, 2024
1 parent 60b59d5 commit 2a96eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatwoot/prosemirror-schema",
"version": "1.0.6",
"version": "1.0.7",
"description": "Schema setup for using prosemirror in chatwoot. Based on 👉 https://github.com/ProseMirror/prosemirror-example-setup/",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/schema/markdown/messageParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ md.enable([
'escape',
]);

md.disable(['table', 'hr', 'heading']);
md.disable(['table', 'hr', 'heading', 'lheading'], true);

export class MessageMarkdownTransformer {
constructor(schema, tokenizer = md) {
Expand Down

0 comments on commit 2a96eb5

Please sign in to comment.