commonmark / commonmark/commonmark-java
Unable to override default delimiter processors
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 2.7k
- 派生
- 336
- PR 合并指标
- 30 天内没有已合并 PR
描述
Is your feature request related to a problem? Please describe.
I wish to override the default delimiter processors the sake of better supporting Discord's markdown quirks. However, I am left unable to override the default options without an exception being thrown due to conflicting characters.
Describe the solution you'd like
I would like to be able to override the two default delimiter processors with my own implementations of the two somehow within the Parser builder.
Describe alternatives you've considered
The current solution for this is to copy the InlineParserImpl class and make your modifications to it, which is definitely not ideal.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Parser builder 和 InlineParserImpl 开始,重点了解两个默认 delimiter processor 是如何注册的,以及冲突字符是如何验证的。跟踪现有的选项注册路径,并确定自定义实现如何在不触发冲突异常的情况下替换这些默认实现。完成标准是 builder 接受这两个覆盖实现,并且 Discord 风格的 delimiter 行为由测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend-api-design
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100