Skip to content

Commit

Permalink
chore: update paste config
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 1, 2024
1 parent 2fcdea5 commit da6fb10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/core/lib/editor/extensions/advice/advice-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export const AdviceView = ({ editor }: AdviceViewProps) => {
className='rounded-md bg-white/10 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-white/20'
onClick={() => {
const originalSelection = editor.state.selection;
const markdownParser = new MarkdownParser(editor, {});
const markdownParser = new MarkdownParser(editor, {
html: true,
});
const markdownNode = markdownParser.parse(advice.content)

editor.chain().focus()?.deleteRange({
Expand Down
2 changes: 1 addition & 1 deletion web/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studio-b3/web-core",
"version": "0.8.7",
"version": "0.8.8",
"type": "module",
"main": "dist/main.js",
"types": "dist-types/main.d.ts",
Expand Down

0 comments on commit da6fb10

Please sign in to comment.