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

Add pre/post hooks into the rendering and tokenization pipelines for customization #66

Open
marijnz0r opened this issue Aug 2, 2019 · 2 comments
Labels
Milestone

Comments

@marijnz0r
Copy link

I would like to render \r, \n and \r\n as a line break. Looking at other issues and the documentation I tried playing with RenderSettings SkipHtmlEncoding true, but this did not help me.
Is there a place I can hook into the rendering process to replace line breaks with a <br> tag to make this work for me?
Thanks for all your hard work!

@Romanx
Copy link
Contributor

Romanx commented Aug 7, 2019

Hey there,

Thank you for the suggestion, we actually had a discussion as part of #24 about adding pre-processing and post-processing hooks to the tokenzation and rendering pipelines as a possible extension.

If you don't mind i'm going to use this issue as the base of the feature and try to get it included in a future release.

@Romanx Romanx changed the title Render line breaks Add pre/post hooks into the rendering and tokenization pipelines for customization Aug 7, 2019
@Romanx Romanx added the feature label Aug 7, 2019
@Romanx Romanx added this to the Future milestone Aug 7, 2019
@marijnz0r
Copy link
Author

Yes, sure! Please let me know if I can be of assistance.

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

No branches or pull requests

2 participants