preactjs / preactjs/preact-render-to-string
Pretty rendering breaks <pre> tags
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 727
- Forks
- 101
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 6
Description
When setting {pretty: true} in options, looks like any <pre> tags in the output get extra indentation added (based on the nesting level of the tag), breaking its contents.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Reproduce rendering with {pretty: true} and a nested <pre> element, then locate the pretty-rendering path and verify that the contents retain their original whitespace without indentation from the tag's nesting level.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100