@yamlresume/core
    Preparing search index...

    Class CalmDocxRenderer

    MIT License

    Copyright (c) 2023–Present PPResume (https://ppresume.com)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Hierarchy (View Summary)

    Index
    codeGenerator: DocxCodeGenerator

    Code generator for generating DOCX paragraphs from AST nodes.

    layoutIndex: number
    resume: Resume
    summaryParser: Parser

    Markdown parser instance used for parsing summary fields.

    • Create a text paragraph with a bold label prefix and normal value suffix.

      Parameters

      • label: string

        The bold label text (e.g., "Keywords: ")

      • value: string

        The normal value text

      Returns Paragraph

      A DOCX paragraph with mixed bold/normal text

    • Convert a markdown string to DOCX paragraphs.

      This method parses markdown content and converts it to appropriate DOCX paragraph elements, supporting:

      • Plain text paragraphs
      • Bold and italic formatting
      • Links (as external hyperlinks)
      • Bullet lists (unordered lists)
      • Ordered lists

      Parameters

      • markdown: string

        The markdown string to convert

      Returns Paragraph[]

      Array of DOCX paragraphs

    • Create a two-column layout paragraph with optional right-aligned content.

      Uses a right-aligned tab stop to push the right content to the margin. Both left and right content can contain TextRun or ExternalHyperlink nodes.

      Parameters

      • leftContent: (TextRun | ExternalHyperlink)[]

        Array of TextRun or ExternalHyperlink for the left column

      • OptionalrightContent: (TextRun | ExternalHyperlink)[]

        Optional array of TextRun or ExternalHyperlink for the right column

      • Optionalspacing: { after?: number; line?: number }

        Optional spacing configuration for the paragraph

      • OptionaltabSize: number

      Returns Paragraph

      A DOCX paragraph with two-column layout