exercism / exercism/problem-specifications
markdown: add test for multiple lists
未关闭
hold
- 主要语言
- Ruby
- 星标
- 358
- 派生
- 563
- 平均合并
- 18 小时 41 分钟
- 30 天内合并 PR
- 2
描述
I was just going to suggest adding an additional test to ensure that the code handles multiple lists properly. In my solution to the problem, I used a regex to insert the `
- ` tags at the appropriate locations. Originally I had just `(
- .* )` which passed all the tests, but which will work ONLY WHEN YOU HAVE A SINGLE LIST in your markdown text. If you have more than one, it'll put a single pair of `
- .*? )(<[ph])|(
- .* )` handles multiple lists correctly, as far as I can tell. The first half (before the '|') catches string-initial or internal lists, while the latter half will kick in to handle string-terminal lists.
- ` tags around all of them (beginning of the first, end of the last) and whatever headers and paragraphs are found between.
My current regex `(
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。