/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/dist/index.js");var r="&nbsp;",t=e.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:r}){return["p",e.mergeAttributes(this.options.HTMLAttributes,r),0]},parseMarkdown:(e,t)=>{const a=e.tokens||[];if(1===a.length&&"image"===a[0].type)return t.parseChildren([a[0]]);const n=t.parseInline(a);return 1!==n.length||"text"!==n[0].type||n[0].text!==r&&" "!==n[0].text?t.createNode("paragraph",void 0,n):t.createNode("paragraph",void 0,[])},renderMarkdown:(e,t)=>{if(!e)return"";const a=Array.isArray(e.content)?e.content:[];return 0===a.length?r:t.renderChildren(a)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});exports.Paragraph=t;