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

Fix TOC for /manual and /style_guide #32

Merged
merged 3 commits into from
Oct 24, 2019
Merged

Conversation

dshubhadeep
Copy link
Contributor

@dshubhadeep dshubhadeep commented Oct 24, 2019

I have used markdown-toc to generate the table of contents for both the markdown files.

I have also added a custom heading renderer since react-markdown doesn't add anchor tags to headings by default. See here

Closes #24

@ry
Copy link
Member

ry commented Oct 24, 2019

Thanks - But now there are two markdown parsers..?

src/manual.md Outdated Show resolved Hide resolved
src/Markdown.js Outdated
}

// Using logic from markdown-toc
const slugify = text => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the Deno style guide ("Top level functions should not use arrow syntax
") and use function slugify(text) { here

src/Markdown.js Outdated Show resolved Hide resolved
src/Markdown.js Outdated Show resolved Hide resolved
@CLAassistant
Copy link

CLAassistant commented Oct 24, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - LGTM

@ry ry merged commit 13c05d9 into denoland:master Oct 24, 2019
lucacasonato added a commit to lucacasonato/dotland that referenced this pull request May 13, 2020
* Update readme

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

Successfully merging this pull request may close these issues.

Table of Contents in /manual and /style_guide is broken
3 participants