oSTEM / conference-site

ostem-conference.vercel.app
3 stars 1 forks source link

Add remark-slug as a plugin #11

Open janine9vn opened 3 years ago

janine9vn commented 3 years ago

Reasoning

I'd like to add remark-slug as a plugin so that the headers on the website get auto-linked.

## My Heading

gets turned into:

<h2 id="my-heading">My Heading</h2>

This will allow us to add a potential Table of Contents and also provide jumplinks if need be. I feel that this necessary on pages with a lot of scrolling content like the awards page.

Another option if we don't want to use remark-slug and instead pseudo roll-our-own: override the headings and provide our own component

twavv commented 3 years ago

Yeah totally agree. Would be need if we could auto add those little clickable anchors as well to copy it.

Is this something you'd like to tackle, or just have a webdev person do it?