Add outline/index to help articles
It would increase the readability of articles when an outline/index is displayed. E.g. this article contains several headings, but it is a bit difficult to quickly navigate the article.
Suggested solution
I think we can use the design of the already existing <Outline>
component (src/components/Review/Outline.js
). Of course, some changes are needed (possibly we can reuse this component, move the sections
variable outside the article, and pass it as a prop. So it looks like: const Outline = ({ sections, editMode = false }) =>
The outline is used in Reviews, for example on this page [1].
[1]
Somehow the headings have to be extracted from the Markdown provided by Strapi. So after getting the headings from the Markdown, it is possible to generate the index.
Edited by Allard Oelen