Skip to content

Cleaner syntax #6

@kildom

Description

@kildom
  • Remove aliases, they are not very intuitive and can be replaces by: styles, groups, or templates
  • Change syntax of Raw docx.js access to something like that:
<docx.js>
    <![CDATA[
    new docx.Paragraph({
        children: [
            new docx.TextRun("Hello World"),
            new docx.TextRun({
                text: "Foo Bar",
                bold: true,
            }),
            new docx.TextRun({
                text: "\tGithub is the best",
                bold: true,
            }),
            ]]>
                <img src="logo.png" />
            <![CDATA[
        ],
    })
    ]]>
</docx.js>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions