denoland/deno_blog

support [toc]

Closed this issue · 3 comments

I find the [toc] tag is not supproted.

image

I couldn't understand what you mean.

If you're talking about post tags, they are specified in the front matter as follows:

---
title: First post
publish_date: 2022-03-20
abstract: This is the first post.
tags:
  - toc
  - cats
  - etc
---

The toc tag works like any other.

image

sorry, it's not the blog tag.

The [toc] is a markdown syntax, means table of content. it will show the article outline.

I see...

As far as I can see this [toc] tag in not part of the Github Flavoured Markdown Specification (which is what we use, see deps.ts), so I don't know if this is going to be implemented, though I do think it is a nice feature.

But then again this a minimalisc solution to blogging. I guess if you really want this you can fork the project and add it, I think there are libs for that.