Skip to content

fix: Use preformatted text for purl and cpe when writing markdown - #15

Open
bol0gna wants to merge 1 commit into
anthonyharrison:mainfrom
bol0gna:main
Open

fix: Use preformatted text for purl and cpe when writing markdown#15
bol0gna wants to merge 1 commit into
anthonyharrison:mainfrom
bol0gna:main

Conversation

@bol0gna

@bol0gna bol0gna commented May 20, 2026

Copy link
Copy Markdown

I made a markdown doc and went to preview it, but the cpe field includes asterisks and some purls may have underscores. Since markdown uses these to italicize text, I figured we could instead wrap those columns' content in ``.

Not sure if there's a better way to do this than isinstance so feel free to do it differently

@anthonyharrison anthonyharrison left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is the correct approach. purl and cpe are already initialised to "" on line 125

If there is an issue with the processing of purls and cpes then the change needs to apply to all types of document not just Markdown.

Do you have a simple SBOM which demonstrates the issue?

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

Successfully merging this pull request may close these issues.

2 participants