Skip to main content
The foundation of document structure. Paragraphs support extensive styling including spacing, indentation, borders, and Word styles.

OOXML Structure

<w:p>
  <w:pPr>
    <w:jc w:val="center"/>
    <w:spacing w:before="240" w:after="120"/>
    <w:ind w:firstLine="720"/>
    <w:pBdr>
      <w:bottom w:val="single" w:sz="4" w:space="1" w:color="auto"/>
    </w:pBdr>
  </w:pPr>
  <w:r>
    <w:t>Paragraph content</w:t>
  </w:r>
</w:p>

Use Case

  • Document structure - Basic building blocks of content
  • Formatting control - Spacing, alignment, indentation
  • Style application - Heading styles, body text styles
  • Borders & shading - Visual separation and emphasis
  • Keep with next - Control page breaks between paragraphs

Options

Configure the extension behavior:
headingLevels
Array<number>
default:"[1,2,3,4,5,6]"
Supported heading levels
htmlAttributes
Object
default:"{}"
HTML attributes for paragraph elements

Attributes

Node attributes that can be set and retrieved:
spacing
Object
Paragraph spacing configuration
extraAttrs
Object
default:"{}"
Additional HTML attributes
marksAttrs
Array
Text formatting marks
indent
Object
Indentation settings
borders
Object
Paragraph borders
class
string
CSS class name
styleId
string
Linked style identifier
justify
Object
Text justification
tabStops
Array
Tab stop positions

Source Code

I