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

Rendering inline HTML #5

Open
choxx opened this issue Jul 25, 2022 · 2 comments
Open

Rendering inline HTML #5

choxx opened this issue Jul 25, 2022 · 2 comments

Comments

@choxx
Copy link
Collaborator

choxx commented Jul 25, 2022

Also Image questions need to be handled separately. Same is the case with formatting. ODK allows markdown based formatting. So html to makrdown conversion needs to happen as well.
https://github.com/Sunbird-Ed/program-service/blob/8dfbf3efb65e886933bb0d788dd5281000d1aa07/src/service/print/pdf.js#L209
https://github.com/Sunbird-Ed/program-service/blob/8dfbf3efb65e886933bb0d788dd5281000d1aa07/src/service/print/pdf.js#L274
This method can be directly used.

I tweaked the first part and am now excluding tags from stripping out: ref

For the second, I'm not sure where exactly & how to use this function


Please also elaborate how to handle media-based questions.

UPDATE (2022-08-10): Image-based questions & other issues have been resolved now. Rest pending is the rendering of inline HTML support in Android phones (which is to be clarified with Android dev separately as discussed)

@ChakshuGautam
Copy link
Contributor

@choxx is this closed now?

@choxx
Copy link
Collaborator Author

choxx commented Aug 8, 2022

@choxx is this closed now?

Yes, except for the inline HTML support in Android (which is to be clarified with Android dev separately as discussed)

@choxx choxx changed the title ODK formatting & image bases questions handling Rendering inline HTML Aug 10, 2022
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