Repository navigation
fix(core): 여는 쪽이 막힌 강조를 같은 줄의 거울 마커와 짝짓는다 #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
corpus/cases/hemmed-opener-before-punct/github-markdown.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값<strong>(합계)</strong>를 본다. 이름이<strong>"홍길동"</strong>이다. 설정<strong>「캐시」</strong>는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2\*\*(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값\*\*(합계) | ||
| **다음** 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2\*\*(n-1) (**주의**) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값\*\*(합계) | ||
| )\*\*를 본다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <p>값<strong>(합계)</strong>를 본다. 이름이<strong>"홍길동"</strong>이다. 설정<strong>「캐시」</strong>는 끈다.</p> | ||
|
|
||
| <p>짝 없는 거듭제곱 2**(n-1) 은 그대로 둔다.</p> | ||
|
|
||
| <p>줄을 넘으면 짝짓지 않는다: 값**(합계)<br> | ||
| <strong>다음</strong> 줄이다.</p> | ||
|
|
||
| <p>괄호 안의 강조는 거울이 아니다: 2**(n-1) (<strong>주의</strong>) 를 본다.</p> | ||
|
|
||
| <p>안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값**(합계)<br> | ||
| )**를 본다.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값**(합계)**를 본다. 이름이**"홍길동"**이다. 설정**「캐시」**는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2**(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값**(합계) | ||
| **다음** 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2**(n-1) (**주의**) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값**(합계) | ||
| )**를 본다. |
11 changes: 11 additions & 0 deletions
11
corpus/cases/hemmed-opener-before-punct/notion-markdown.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값**(합계)**를 본다. 이름이**"홍길동"**이다. 설정**「캐시」**는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2\*\*(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값\*\*(합계) | ||
| **다음** 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2\*\*(n-1) (**주의**) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값\*\*(합계) | ||
| )\*\*를 본다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값(합계)를 본다. 이름이"홍길동"이다. 설정「캐시」는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2**(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값**(합계) | ||
| 다음 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2**(n-1) (주의) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값**(합계) | ||
| )**를 본다. |
11 changes: 11 additions & 0 deletions
11
corpus/cases/hemmed-opener-before-punct/slack-markdown.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값**(합계)**를 본다. 이름이**"홍길동"**이다. 설정**「캐시」**는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2**(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값**(합계) | ||
| **다음** 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2**(n-1) (**주의**) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값**(합계) | ||
| )**를 본다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 값<b>(합계)</b>를 본다. 이름이<b>"홍길동"</b>이다. 설정<b>「캐시」</b>는 끈다. | ||
|
|
||
| 짝 없는 거듭제곱 2**(n-1) 은 그대로 둔다. | ||
|
|
||
| 줄을 넘으면 짝짓지 않는다: 값**(합계) | ||
| <b>다음</b> 줄이다. | ||
|
|
||
| 괄호 안의 강조는 거울이 아니다: 2**(n-1) (<b>주의</b>) 를 본다. | ||
|
|
||
| 안 닫힌 코드 스팬 뒤에서도 줄은 줄이다: `값**(합계) | ||
| )**를 본다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| 강조를 여는 `**` 앞에 낱말이 붙고 뒤가 구두점이면 CommonMark 는 그 마커를 열지 않는다 — `값**(합계)**를`, | ||
| `이름이**"홍길동"**이다`. 닫는 쪽이 "구두점 + 조사"라 못 닫히는 모양(`punct-before-closing-emphasis`)의 거울이고, | ||
| 이 프로젝트를 시작하게 한 모양 가운데 하나다. 전에는 첫 `**` 를 추측으로 열었다가 블록 끝에서 버리고, 둘째 | ||
| `**` 는 추측을 닫지 않는 규칙 때문에 글자로 남겼다 — 하나는 사라지고 하나만 보이는 가장 나쁜 결과였다. | ||
|
|
||
| **막힌 여는 마커는 같은 줄의 거울 모양 마커하고만 짝짓는다.** 같은 길이이고 앞이 구두점인 닫는 마커다. 추측을 | ||
| 닫지 않는 규칙은 글롭(`underfront.* (4개)`)·주석(`/* */`)에서 나왔는데 그 둘은 여는 쪽 뒤가 공백이라 여기 걸리지 | ||
| 않고, 마스킹 번호(`4***-****`)는 길이가 달라 걸리지 않는다. 줄을 넘으면 짝짓지 않는다. | ||
|
|
||
| **짝 없는 막힌 마커는 버리지 않고 글자로 되돌린다.** `2**(n-1)` 의 `**` 는 거듭제곱이지 짝 잃은 마커가 아니다 — | ||
| 전에는 버려서 `2(n-1)` 이 됐다. | ||
|
|
||
| 출력: GitHub 은 `<strong>`, 슬랙은 여는 마커 뒤 · 닫는 마커 앞에 U+2060, 텔레그램은 태그. | ||
|
|
||
| **앞이 여는 괄호·따옴표인 마커는 거울이 아니라 다음 강조의 여는 마커다.** `2**(n-1) (**주의**)` 의 둘째 `**` 를 | ||
| 거울로 삼키면 `(` 까지 굵어지고 셋째가 글자로 남는다(리뷰가 찾았다). 막힌 마커는 글자로 돌아가고 `**주의**` 가 | ||
| 온전히 열린다. ASCII `"`·`'` 는 여닫는 모양이 같아 가르지 않는다. | ||
|
|
||
| **안 닫힌 코드 스팬을 되돌려 다시 읽을 때도 줄은 줄이다.** 되돌린 내용에 줄바꿈이 들어 있으면 그 줄들을 다시 | ||
| 지나므로 줄 번호를 코드 스팬이 열린 줄로 되감고 센다 — 안 그러면 "같은 줄" 검사가 줄을 넘어 통과한다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.