简体   繁体   English

MyST 允许非连续 header 级别增加

[英]MyST allowing non-consecutive header level increase

I want to generate pages with a large header at the top but much smaller headers below.我想生成顶部带有大 header 但下面的标题要小得多的页面。 So for example所以例如

<h1> Big heading </h1>
Test

<h4> Small heading </h4>
test

But if I go immediately from # Big Heading to #### Small heading I get this warning:但是,如果我立即从 #Big # Big Heading#### Small heading的 go 我收到此警告:

WARNING: Non-consecutive header level increase;警告:非连续 header 级别增加; H1 to H4 [myst.header] H1 到 H4 [myst.header]

and it actually uses h1 and h2.它实际上使用 h1 和 h2。 If I start with say ### and then use #### it starts with h1.如果我以###开头,然后使用####它以 h1 开头。

Is there any way to avoid having the subheadings being so large?有什么办法可以避免副标题过大?

You can add suppress_warnings = ["myst.header"] to your conf.py to disable this check but it will have an effect on entire docs.您可以将suppress_warnings = ["myst.header"]添加到您的conf.py以禁用此检查,但它会对整个文档产生影响。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM