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] Converter to convert regular RTF into HTML. #351

Open
TheElementalOfDestruction opened this issue Mar 18, 2023 · 0 comments

Comments

@TheElementalOfDestruction
Copy link
Collaborator

This feature will add a converter (an internal one) that can convert the RTF body into HTML should the HTML body not exist. This ignores encapsulated HTML entirely, strictly looking at RTF tags for this. Unfortunately, it is likely that one will have to be created from scratch, as I have not been able to find a working converter that actually follows the standards of RTF, the most important being how to actually process toggles. Every RTF to HTML converter I have looked at so far will blatantly ignore the state listed by the toggle, always switching the state instead of setting it to what the toggle requests.

This feature is necessary for the proper completion of support for custom outlook images. As far as I can tell, these only appear when the body type is set to be RTF and the RTF has no encapsulated HTML. These images are stored in a custom format, and the position to show them is given as a number of rendered characters, making it important to calculate how many characters have been shown on the page. Plain text to HTML conversion is usually not sufficient, as links are often shown using more characters than would be rendered, causing some images to be inserted into the wrong place.

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

No branches or pull requests

1 participant