Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glorious-beard opened this issue Aug 18, 2021 · 1 comment

Comments

@glorious-beard
Copy link

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.

@gunnsth
Copy link
Contributor

gunnsth commented Jan 15, 2022

@glorious-beard What is the use case for getting the alias and tag? Some examples would be great to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants