1

我正在README为我在 Github 上的扩展之一写作。

我有以下标记:

**Filled tests:**

id | name
-- | ----------------
1  | Common test
2  | Programming test

**Filled questions:**

id | test_id | content                             | is_active | Current position
-- | ------- | ----------------------------------- | --------- | ----------------
1  | l       | What's your name?                   | 1         | 1
2  | 1       | What's your age?                    | 1         | 2
3  | 1       | What's your favorite dish?          | 1         | 3
4  | 1       | What's your hobby?                  | 1         | 4
5  | 1       | What's your favorite sport?         | 1         | 5
6  | 2       | What's you programming experience?  | 1         | 1
7  | 2       | What language you use to code?      | 1         | 2
8  | 2       | What DBMS you have experience with? | 1         | 3
9  | 2       | What VCS you have experience with?  | 1         | 4
10 | 2       | Do you use CSS preprocessors?       | 1         | 5

但它呈现为纯文本。

我在这里关注了官方文档,似乎语法是正确的。

顺便说一句,最初是这样的(第二行没有空格):

**Filled tests:**

id | name
---|-----------------
1  | Common test
2  | Programming test

但我注意到在某些行的第二列中1显示为|,所以我决定将其更改为与文档中的完全相同。

空格或标题长度是否有任何限制?

我做错了什么?

更新:

我还尝试在列的末尾添加额外的空间id(认为它可能太短了)。

**Filled tests:**

id  | name
--- | ----------------
1   | Common test
2   | Programming test

以此类推其他表。

表格显示正确,但test_id在某些单元格的第二列 ( ) 中1再次显示为|

我检查了生成的 html 并在1那里。

似乎很奇怪。试图重置缓存,没有帮助。

4

1 回答 1

1

我联系了 Github 支持,现在问题已经解决。

1)至于将表格呈现为纯文本,您需要为列使用至少3个连字符:

**Filled tests:**

id  | name
--- | ----------------
1   | Common test
2   | Programming test

我询问是否在官方文档中添加此信息,它可能很快就会出现在那里。

2)关于在“test_id”列的某些单元格中显示垂直分隔符:实际上不是|,它是小写L字母 - l。看起来如此相似,即使在仔细检查之后也没有注意到。替换后1一切正常。

于 2015-04-02T18:08:13.127 回答