Gitea: Markdown parser when having link lists as TOC

Created on 26 Jul 2019  路  6Comments  路  Source: go-gitea/gitea

Hello all

I found out that gitea not always renders markdown (e.g. README.md file) as expected for internal link/ankers when using a table of contents generator.
It works and it doesnt.

Maybe a restriction in length or incomplete parser? See link above.

The only difference in my examples: The one that dont work has only one root element.
The working example has mor than one. Dropping a first level solves it but i think this is unusual or am i wrong?

Kind regards florian

stale

Most helpful comment

Your example is 404.

All 6 comments

Your example is 404.

Your example is 404.

Try this [1], i updated the link an hour ago because it was the edit link
[1] https://try.gitea.io/company/markdown-checks/src/branch/master/README.md

Now it works: it was private! sorry!

It is a little hard to follow the description but I think this is maybe the upstream issue with the markdown renderer we use:

https://github.com/russross/blackfriday/issues/329

Seems to be that it sets tabs to size of 4 spaces, not two despite two being standard for other markdown renderers

@mrsdizzie Yes, you are right! I could try to send the number space chars i set to make it clear! Sry!!! i' updated my rules for 3 chars indent using the doctoc tool, which currently works.. in other situations things dont work. I try to make the report better next time.

Kind regards Florian

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

This issue has been automatically closed because of inactivity. You can re-open it if needed.

Was this page helpful?
0 / 5 - 0 ratings