Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加extractHeaders: [ 'h2', 'h3', 'h4' ]以后,侧边栏h4缩进有问题,求大佬帮解决 #3184

Open
scr1pt-yang opened this issue Nov 11, 2023 · 0 comments

Comments

@scr1pt-yang
Copy link

我的需求是让侧边栏能够提取显示h4,甚至是h5,通过查看之前的Issues,我在配置文件config.js中添加这段配置:
markdown: {
extractHeaders: [ 'h2', 'h3', 'h4' ]
}
但我发现侧边栏虽然能够提取并显示h4,但是缩进关系产生了问题,h4级标题并没有在h3级标题之下,我尝试过在head中引入style.css修改html标签的padding值达到缩进的目的,但是并未成功。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant