appstream extractor: add support for code
Metadata
Current evaluation
Merged a pull request adding XSLT support to preserve code tags during Appstream to Markdown transformation. Approved by a reviewer, passed CI checks, and added 63 lines across two files to prevent code content from being stripped.
Suggested action: —
No scores available.
Issue body
The Markdown used by the Snap Store does not yet support "verbatim"
or code-like formatting while Appstream does.
The new XSLT snippet is added to ensure these code tags are not
swallowed during the transformation.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a pull request adding XSLT support to preserve code tags during Appstream to Markdown transformation. Approved by a reviewer, passed CI checks, and added 63 lines across two files to prevent code content from being stripped. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged an appstream extractor update adding an XSLT snippet to preserve code tags during transformation. This prevents code content from being stripped when converting Appstream data to Snap Store Markdown, which lacks native code formatting support. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged an appstream extractor update adding an XSLT snippet to preserve code tags during transformation. This prevents verbatim text from being stripped when converting Appstream metadata to Snap Store Markdown format. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1845309 appstream extractor's xslt needs em and code | snapcraft (launchpad) | closed | Closed without implementation. The request to update the appstream extractor XSLT for em and code tag support was abandoned due to prolonged inactivity and zero comments. | |
| #2832 appstream extractor: take xml comments into account | snapcraft | merged | Merged changes to the appstream extractor to properly handle XML comments. Approved by one reviewer with no unresolved comments. Adds 65 lines across two files, resolving Launchpad bug #1852329. | |
| #3695 meta: add appstream metadata extractor | snapcraft | merged | Merged after reviewer approval and passing CI. Adds an appstream metadata extractor to parse application metadata from appstream files, modifying 9 files with a net addition of 1192 lines. | |
| #2430 extractors: better appstream support for descriptions | snapcraft | merged | Merged enhancement to AppStream description extraction using XSLT normalization and xml:lang handling. Addressed reviewer feedback to include ordered list support prior to merge. | |
| #2828 Appstream | snapcraft | merged | Merged following approval from @hsitter. The change updated Appstream metadata processing, resolving a brief discussion on markdown italic syntax. The commit modified two files with 83 additions and 22 deletions. | |
| #2656 appstream: xslt support for ul nested in p | snapcraft | merged | Merged to master, adding XSLT template support for unordered lists nested within paragraph tags in appstream. Approved, passed CI, and integrated with 100% diff coverage. | |
| #1861 extractors: also support appdata.xml appstream files. | snapcraft | merged | Merged into the main branch after passing CI checks and receiving approval. Adds support for appdata.xml appstream files to the extractors module with minor code changes across two files. | |
| #2762 appstream: extract title and version | snapcraft | merged | Merged changes extract title and version from AppStream metadata by parsing the name tag and first release tag. Adds 105 lines across three files, passes CI, and enables adopt-info functionality for Snapcraft without external dependencies. | |
| #2435 Appstream desktop | snapcraft | merged | Merged pull request adding Appstream desktop support. Approved by one reviewer with no unresolved comments. CI passed, modifying 10 files with 95.91% diff coverage. |