nextcloud / nextcloud/text

Render the text into the HTML for readers without JavaScript

Open
#8,847 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.
I shared a document from my NextCloud with a colleague who keeps JavaScript disabled, and got feedback that it was inconvenient to have to enable it just to read a plain text document.

Describe the solution you'd like
Pre-render the text in the initial HTML payload so that it displays for NoScript users, with progressive enhancement.

Describe alternatives you've considered
If when creating a "share" link I could select an option to share a raw download, that would also have worked for this colleague.

Additional context
This could also help with supporting a wider array of browsers and text scraping tools &c. General accessibility improvement by putting the text in the plain HTML.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the share-link document rendering entry point and trace how the initial HTML payload is produced. Compare the current JavaScript-dependent view with a browser that has JavaScript disabled; done means shared plain-text content appears in the initial HTML while progressive enhancement still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.