[0118] 首行缩进在节、代码块、列表后生效#3347
Open
da-liii wants to merge 1 commit into
Open
Conversation
在样式语言中新增开关 indent-after-block,控制节、代码块、列表等 结构后的段落是否保留首行缩进。 - generic 等样式默认关闭(保持现有行为) - article 样式默认开启 - 用户可在导言区通过 <assign|indent-after-block|true/false> 手动覆盖 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
在样式语言中新增开关
indent-after-block,控制节、代码块、列表等结构后的段落是否保留首行缩进。变更内容
std-markup.ts: 定义新变量indent-after-block,默认falsesection-base.ts:sectional-no-indent仅在开关关闭时发射<no-indent*>std-list.ts:render-list尾部<no-indent*>受开关控制compact-list.ts: 紧凑列表尾部<no-indent*>受开关控制env-program.ts:render-code尾部<no-indent*>受开关控制framed-program.ts/modern-program.ts: 算法代码块尾部<no-indent*>受开关控制article.ts: article 样式默认开启<assign|indent-after-block|true>测试方式
indent-paragraphs包默认行为
🤖 Generated with Claude Code