hackmdio / hackmdio/hackmd-io-issues

[TOC][new Beta Editor] TOC is not shown in new beta editor

Open
#347 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [x] Yes, the bug happens on https://hackmd.io
- [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

### What's the problem

`[toc]` keyword is not parsed to correct HTML format in new preview editor.

#### Current behaviour

> Screenshot (optional)

![image](https://github.com/hackmdio/hackmd-io-issues/assets/26144676/2da1dd1b-b871-4800-8d9b-0092f9491d57)

Provide steps to reproduce:

1. Enable new beta editor preview
2. input `[TOC]` in editor
3. It shows `[TOC]` text only in new editor, while in old version editor, it shows table of content correctly.

If possible, create a note with reproducible content and share the link with us.

note link: https://hackmd.io/features#ToC

#### Expected behaviour

![image](https://github.com/hackmdio/hackmd-io-issues/assets/26144676/759e4a73-064d-403f-b7e1-4d23813fd541)

#### Environment

I use HackMD on:

**Desktop**
- OS: win11
- Browser: brave

I'm not sure if I should post any issue about new preview feature on Github here... or report it on Hackmd feedback system.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.