Codeberg/Community
54
327
Fork
You've already forked Community
12

Feature request: reStructuredText (ReST) rendering support? #245

Closed
opened 2020年08月29日 16:35:42 +02:00 by ubuntourist · 10 comments

Since I do a lot of development in Python, and encounter -- and create *.rst files often enough, and because Gitea supports it:

https://docs.gitea.io/en-us/external-renderers/

I'm wondering if reStructuredText rendering could be implemented here.

Since I do a lot of development in Python, and encounter -- and create `*.rst` files often enough, and because Gitea supports it: https://docs.gitea.io/en-us/external-renderers/ I'm wondering if reStructuredText rendering could be implemented here.
Member
Copy link

The external renderers (jupyter, asciidoc see #202 and similar) have the issue that we need to be very careful with security issues. Every contribution is welcome that is improving sandboxing the rendered HTML, and isolating the execution (some tests with single-use/throwaway-VMs for example in https://codeberg.org/hw/qemu-experiments)!

The external renderers (jupyter, asciidoc see https://codeberg.org/Codeberg/Community/issues/202 and similar) have the issue that we need to be very careful with security issues. Every contribution is welcome that is improving sandboxing the rendered HTML, and isolating the execution (some tests with single-use/throwaway-VMs for example in https://codeberg.org/hw/qemu-experiments)!

I also preffer Asciidoc over Markdown, but the problem is that in Gitea, each document is rendered separatelly, so things like ˋincludesˋ actually do not work, making the usefulness factor go down a lot.

I also preffer Asciidoc over Markdown, but the problem is that in Gitea, each document is rendered separatelly, so things like ˋincludesˋ actually do not work, making the usefulness factor go down a lot.
Owner
Copy link

Just to hit you up: Codeberg/build-deploy-gitea#59 was merged (thanks to @corvus), we'll test and deploy (probably with the Gitea 1.14 update).

Security / Sandboxing is still an issue, we'd love to see this improved. Every new renderer currently opens a potential security risk.

Just to hit you up: https://codeberg.org/Codeberg/build-deploy-gitea/pulls/59 was merged (thanks to @corvus), we'll test and deploy (probably with the Gitea 1.14 update). Security / Sandboxing is still an issue, we'd love to see this improved. Every new renderer currently opens a potential security risk.

gitea should escape, but better testing it thank noticing it later

gitea *should* escape, but better testing it thank noticing it later

should work now, can someone push a rst deom? / confirm it's working?

should work now, can someone push a rst deom? / confirm it's working?

I have a README.rst at this repository: https://codeberg.org/sph/mopidy-autoplay/

It works on github and PyPi, but now the rendered file is empty. Yesterday it was still shown, but obviously unrendered.

I have a README.rst at this repository: https://codeberg.org/sph/mopidy-autoplay/ It works on [github](https://github.com/sphh/mopidy-autoplay) and [PyPi](https://pypi.org/project/mopidy-autoplay), but now the rendered file is empty. Yesterday it was still shown, but obviously unrendered.
Owner
Copy link

Sorry, fixed now.

Sorry, fixed now.

@sph thanks for the ping - fixed

@sph thanks for the ping - fixed

You asked for a demo ...

Thanks for getting the .rst renderer up and running! Highly appreciated!!

You asked for a demo ... Thanks for getting the .rst renderer up and running! Highly appreciated!!

Although the math equations are not yet supported in the rst format, but I still appreciate all the work which gone into integrating the rendered.

Although the math equations are not yet supported in the rst format, but I still appreciate all the work which gone into integrating the rendered.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
7 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#245
Reference in a new issue
Codeberg/Community
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?