OpenCTI-Platform / connectors

OpenCTI Connectors
https://www.opencti.io
Apache License 2.0
384 stars 415 forks source link

[ExportReportPdf] Convert entity's description from markdown to HTML #2994

Open Powlinett opened 6 days ago

Powlinett commented 6 days ago

Proposed changes

Related issues

Checklist

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

output: image

Useful resources

cmarkgfm lib doc: https://pypi.org/project/pycmarkgfm/