Skip to content

Commit

Permalink
Merge pull request #697 from tschmidtb51/clarify-markdown
Browse files Browse the repository at this point in the history
Clarify markdown
  • Loading branch information
tschmidtb51 authored Feb 26, 2024
2 parents 3061721 + c41b0f2 commit 5bc91df
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions csaf_2.1/prose/edit/src/additional-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,28 @@ they MUST be separated by the Record Separator in accordance with [cite](#RFC746

The keys within a CSAF document SHOULD be sorted alphabetically.

## Usage of Markdown

The use of GitHub-flavoured Markdown is permitted in the following fields:

```
/document/acknowledgments[]/summary
/document/distribution/text
/document/notes[]/text
/document/publisher/issuing_authority
/document/references[]/summary
/document/tracking/revision_history[]/summary
/product_tree/product_groups[]/summary
/vulnerabilities[]/acknowledgments[]/summary
/vulnerabilities[]/involvements[]/summary
/vulnerabilities[]/notes[]/text
/vulnerabilities[]/references[]/summary
/vulnerabilities[]/remediations[]/details
/vulnerabilities[]/remediations[]/entitlements[]
/vulnerabilities[]/remediations[]/restart_required/details
/vulnerabilities[]/threats[]/details
```

Other fields MUST NOT contain Markdown.

-------
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CSAF documents are based on JSON, thus the security considerations of [cite](#RF
In addition, CSAF documents may be rendered by consumers in various human-readable formats like HTML or PDF.
Thus, for security reasons, CSAF producers and consumers SHALL adhere to the following:

* CSAF producers SHOULD NOT emit messages that contain HTML, even though all variants of Markdown permit it.
* CSAF producers SHOULD NOT emit messages that contain HTML, even though GitHub-flavoured Markdown is permitted.
To include HTML, source code, or any other content that may be interpreted or executed by a CSAF consumer,
e.g. to provide a proof-of-concept, the issuing party SHALL use Markdown's fenced code blocks or inline code option.
* Deeply nested markup can cause a stack overflow in the Markdown processor [cite](#GFMENG).
Expand Down

0 comments on commit 5bc91df

Please sign in to comment.