Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

gitiles fails to render HTML tables in Markdown content #228

Open
bcmills opened this issue Jun 8, 2021 · 2 comments
Open

gitiles fails to render HTML tables in Markdown content #228

bcmills opened this issue Jun 8, 2021 · 2 comments

Comments

@bcmills
Copy link

bcmills commented Jun 8, 2021

Steps to reproduce

  1. Open https://go-review.googlesource.com/c/website/+/324489/1/_content/ref/mod.md#2824.
  2. Click the gitiles link in the diff header.
  3. Scroll to the section containing the new table.

Expected

Since HTML tables are not, to my knowledge, a grave security risk, the HTML table in the document should be rendered — in much the same way that GitHub renders the table below.

Name Command GOVCS default Secure schemes
Bazaar bzr Private only https, bzr+ssh
Fossil fossil Private only https
Git git Public and private https, git+ssh, ssh
Mercurial hg Public and private https, ssh
Subversion svn Private only https, svn+ssh

Observed

The table is dropped from the rendered document, without even any visual indication that content has been omitted.

image

@bcmills
Copy link
Author

bcmills commented Jun 8, 2021

See previously #207, #219.

@haruzheng
Copy link

I think gitiles can't support html tag. I tried to <table>, <script>.

Finally i used markdown table.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants