Skip to content

[Feature Request] Provide access to the "Alias" and "Tag" properties of StructuredDocumentTag objects. #455

@glorious-beard

Description

@glorious-beard

Description

Currently, while structured document tags are available for a document, programmatic access to the title and tag properties for each structured document tag is not. The API only provides access to the paragraphs.

Expected Behavior

Each StructuredDocumentTag object provides Alias() and Tag() functions.

for _, sdt := range doc.StructuredDocumentTags() {
    fmt.Printf("Alias: '%v'\n", sdt.Alias()) // returns an alias or empty string for the SDT
    fmt.Printf("Tag: '%v'\n", sdt.Tag()) // returns a tag or empty string for the SDT
}

Actual Behavior

No access to alias or tag for a structured document tag.

Please include a reproducible code snippet or document attachment that
demonstrates the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions