mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5597] [MERGED] fix: ensure correct parser for xml and plaintext #5271
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5597
Author: @jaeyonglee-int
Created: 11/19/2025
Status: ✅ Merged
Merged: 12/2/2025
Merged by: @jamesgeorge007
Base:
patch← Head:ensure-correct-parser-for-xml-and-plaintext📝 Commits (6)
13f233bremove yaml parser for plaintext, add xml parser for text xmldb98129update editorutils testc186e7cremove unnecessary importe35e494map text plain to text plain instead9b6affaupdate unit tests2f1bf93fix: add prettification support for text/xml content type📊 Changes
4 files changed (+20 additions, -11 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+4 -1)📝
packages/hoppscotch-common/src/components/http/RawBody.vue(+5 -1)📝
packages/hoppscotch-common/src/helpers/__tests__/editorutils.spec.js(+8 -7)📝
packages/hoppscotch-common/src/helpers/editorutils.ts(+3 -2)📄 Description
Closes #5294, FE-981.
This change does 3 things:
codemirror.tswould eventually set the language to null anyway since its getLanguage function does not have a plaintext language and would return null (as expected). We still map plaintext to "text/plain" for better readabilitycodemirror.ts, the language would still be set to null and no language specific parsing/highlighting would happen. We choose to return text/plain knowing this.Summary by cubic
Fixes parser selection for text/plain and XML and adds prettify support for text/xml. Also prevents clearing responses in examples/test runner and cleans up published docs that reference deleted collections.
Written for commit
2f1bf936ed. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.