Type: Enhancementhelp wanted
仓库指标
- Star
- (910 star)
- PR 合并指标
- (平均合并 16天 9小时) (30 天内合并 3 个 PR)
描述
Currently, you can only hide lines that end with # hide. We could generalize it by allowing the user to pass a hide option to the block which should be a regex (or an array of regexes) that we then occursin against the lines.Potential use cases:
- Hiding JuliaFormatter
#! format: offwith e.g. ar"^#! format:"regex. - Filtering out comments with
r"^#
```@example my-block; hide = r"^#! format:"
#! format: off
weirdly_formatted_code_that_I_want_to_keep_that_way(...)
#! format: on
```