일부 행이 파이프(|)로 시작하지 않는 표를 편집하면 해당 행이 중복됩니다

Markdown 테이블은 첫 번째 열이 파이프(|)로 시작하지 않고(마지막 열도 파이프(|)로 끝나지 않는) 구문을 지원합니다.

이것은 유효한 테이블입니다 :point_down:

icon | description | content |
-|-|-|
:discourse2: | **Summary** | **Discourse OpenID Connect** allows an OpenID Connect provider to be used as an authentication provider for Discourse. 
:hammer_and_wrench: | **Repository Link** | <https://github.com/discourse/discourse-openid-connect>
:open_book: | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)

다음과 같이 렌더링됩니다:

icon description content
:discourse2: Summary Discourse OpenID Connect allows an OpenID Connect provider to be used as an authentication provider for Discourse.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-openid-connect
:open_book: Install Guide How to install plugins in Discourse

테이블 빌더로 테이블을 편집하고 저장할 때(데이터를 변경하지 않고) 앞선 파이프가 없는 모든 행이 중복됩니다:

헤더에 앞선 파이프가 없으면, 편집하고 저장할 때 헤더가 중복됩니다:


헤더와 구분선에 앞선 파이프가 없으면, 헤더와 구분선이 중복됩니다:


헤더를 제외한 모든 행에 앞선 파이프가 없으면, 편집하고 저장할 때 헤더를 제외한 모든 것이 중복됩니다

gmumsb.cloudfront.net/original/4X/8/6/9/8698915fc6b623d8f1d4495694845016fcace410.mp4

모든 행에 앞선 파이프가 없으면 테이블 저장이 작동하지 않고 JS 오류가 발생합니다:
Cannot read properties of null (reading 'length').

#customization:plugin의 토픽 템플릿 기본 테이블에는 앞선 파이프가 없었으므로, 잠재적인 오류를 방지하기 위해 파이프를 추가하도록 수정했습니다.


요약하자면:

  1. 앞선 파이프가 없는 테이블 행은 유효한 Markdown 구문입니다

  2. 테이블 빌더는 앞선 파이프가 없는 테이블 행을 지원하지 않습니다

:smiley_cat:

2개의 좋아요