convert entity description field to HTML before injecting it into template
replace <p> tag by <div> in case’s template to ensure consistent display
Related issues
2735
Checklist
[x] I consider the submitted work as finished
[x] I tested the code for its functionality using different use cases
run bandit on markdown lib's code
run pip-audit on connector's requirements
[ ] I added/update the relevant documentation (either on github or on notion)
[ ] Where necessary I refactored code to improve the overall quality
Further comments
Incident response's description used for tests:
**Incident from Harfanglab Incidents**
1. first item
first description
2. second item
second desc
### GFM
#### Autolink literals
www.example.com, https://example.com, and contact@example.com.
#### Footnote
A note[^1]
[^1]: Big note.
#### Strikethrough
~one~ or ~~two~~ tildes.
#### Table
| a | b | c | d |
| - | :- | -: | :-: |
#### Tasklist
* [ ] to do
* [x] done
Proposed changes
cmarkgfm
librarydescription
field to HTML before injecting it into template<p>
tag by<div>
in case’s template to ensure consistent displayRelated issues
2735
Checklist
bandit
onmarkdown
lib's codepip-audit
on connector's requirementsFurther comments
Incident response's description used for tests:
output:
Useful resources
cmarkgfm lib doc: https://pypi.org/project/pycmarkgfm/