Page MenuHomePhorge

Generate a Table of Content for Diffusion browse as Remarkup (?as=remarkup)
Open, NormalPublic

Description

When browsing a markdown file in Diffusion with the 'View as Remarkup' view option selected, the file will render in HTML, but no TOC (table of contents) will be generated

Eg: https://we.phorge.it/source/phorge/browse/master/externals/octicons/README.md?as=remarkup

The code for generating the TOC exists (see src/infrastructure/markup/blockrule/PhutilRemarkupHeaderBlockRule.php) but it is not used in Diffusion.

Event Timeline

Uhm

Where I can see the TOC in action? I think that I do not see that even here without ?as=remarkup:

https://we.phorge.it/source/phorge/browse/master/externals/octicons/README.md

valerio.bozzolan renamed this task from No TOC generated for diffusion browse ?as=remarkup to Generate a Table of Content for Diffusion browse as Remarkup (?as=remarkup).Nov 20 2023, 09:15
valerio.bozzolan triaged this task as Normal priority.
valerio.bozzolan awarded a token.