fix(SUP-43316): support links in IVQ questions #131
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the issue:
![image](https://private-user-images.githubusercontent.com/162575174/349079549-5988261d-a74e-4bf7-8e7a-37cdc9bc09be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTgwMzEsIm5iZiI6MTczOTYxNzczMSwicGF0aCI6Ii8xNjI1NzUxNzQvMzQ5MDc5NTQ5LTU5ODgyNjFkLWE3NGUtNGJmNy04ZTdhLTM3Y2RjOWJjMDliZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMTA4NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMzcwYzkxNGFlZGMyM2QzZTNmZjVlYjAyOTJiYjgwYmMwY2I1ZTYyYmNmMmUyYmY4YzI1YjZmYzdjYWM2ZDBhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mTDOrtJG_8m_YcXT9bUyUw3BTurkOHc-iDk3bpH1t0g)
adding a question that contains a link in the form of [link title|http://www.example.com/] to IVQ entry, doesn't render it as a link element .
solution:
As in v2, added a util function that parses the questions and converts them to a link element if they correspond to the specific link syntax, supporting all 4 types of questions.
![image](https://private-user-images.githubusercontent.com/162575174/349079583-9baf8b96-813e-42b8-b78f-6b2556b76a2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTgwMzEsIm5iZiI6MTczOTYxNzczMSwicGF0aCI6Ii8xNjI1NzUxNzQvMzQ5MDc5NTgzLTliYWY4Yjk2LTgxM2UtNDJiOC1iNzhmLTZiMjU1NmI3NmEyYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMTA4NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02YWViODhhZmVkNDc4N2I2YmU0MmJkYTE5MGI4ZTk2MTkyNTQxNmVkNTQwZTk5YjJiMmY2YjAwNjA1NjQwMWQ5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qqYFk30X5khPtA39tGAV2VVLUkULKZqUPb9piXxUHW4)
Solves SUP-43316