exercism / exercism/docs

markdown: explicitly say whether GFM is supported

Đang mở
#361 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
52
Fork
98
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I believe that the website uses [`commonmarker`](https://github.com/gjtorikian/commonmarker) (see [here](https://github.com/exercism/website/blob/498497e3cd333c248aee5eaa5ee6d2298b0349eb/app/commands/markdown/render_html.rb#L18)), which is the wrapper for [`libcmark-gfm`](https://github.com/github/cmark-gfm). And therefore the website supports rendering a markdown file that uses [GitHub Flavored Markdown](https://github.github.com/gfm/) features.

However, the [Exercism Markdown spec](https://github.com/exercism/docs/blob/d3e8cb88eef0ade7401d95e349f469a3a3a8faf3/building/markdown/markdown.md) does not state whether a Markdown file can use GFM features. We should state that explicitly, so that e.g. a track knows whether they can use a tables, task list items, or strikethroughs.

Configlet will soon learn to parse and render Markdown, but this will at least initially only support the CommonMark 0.30 spec (not GFM). If necessary, it should be straightforward for it to support GFM (by wrapping `libcmark-gfm`, rather than `libcmark`).

Somewhat related:
GitHub is thinking about adding a new admonition syntax. See https://talk.commonmark.org/t/4173

But even if the GFM spec is changed, I would suggest that we keep the current admonition syntax:

> All blocks are written using 4 tildes, in the form of:
>
> ````
> ~~~~exercism/note
> Content goes here
>
> You can include code:
> ```ruby
> str = "Hello, World"
> ```
> ~~~~
> ````
>
> (Note: You may also use backticks or other levels of tildes in exceptional circumstances)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.