1
我正在爲Github上的一個擴展名寫README
。Github Flavored Markdown表呈現爲純文本或垂直分隔符出現在內容中
我有以下標記:
**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
但它呈現爲純文本。
我遵循官方文檔here,似乎語法是正確的。
順便說,起初它是這樣(在第二行中沒有空格):
**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
。
看起來很奇怪。試圖重置緩存,沒有幫助。