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

Parse and render Smart Tags #108

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

dmitri-gb
Copy link
Contributor

I stumbled upon a document that was using something called Smart Tags. docx-preview ignores those elements, so part of the text was missing from the rendered HTML.

I don't really care about the specific features that Smart Tags provide, I just need the text within them to show up. So this is just a simple fix to pass along the child run elements.

I struggled to create a document with Smart Tags myself, but one is availale here (the smart tag is right before the phrase sprieduma lietā Nr. SKA-468/2005).

Before:

image

After:

image

@VolodymyrBaydalka VolodymyrBaydalka merged commit f3fec58 into VolodymyrBaydalka:master Apr 16, 2024
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

Successfully merging this pull request may close these issues.

2 participants