Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix/pound in text#78

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 3 commits intomasterfromfix/pound-in-text
Apr 3, 2021
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
setup test for content with a #
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedApr 3, 2021
commit1a7b47c05d9ef642ba267d721f7ddd3ab53f4cdc
47 changes: 47 additions & 0 deletionstests/parse.test.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -971,6 +971,53 @@ The third step
expect(result.levels).toEqual(expected.levels)
})

it('should load content with #', () => {
// https://github.com/coderoad/coderoad-vscode/issues/479

const md = `# Title

Description line with # content and #content and ## content

## 1. Title

First line with # content and #content and ## content

### 1.1

Content line with # content and #content and ## content`
const skeleton = {
levels: [
{
id: '1'
}
]
}
const result = parse({
text: md,
skeleton,
commits: {
'1': ['abcdefg1']
}
})
const expected = {
summary: {
description:
'Description line with # content and #content and ## content'
},
levels: [
{
id: '1',
summary: 'First line with # content and #content and ## content',
content: 'Content line with # content and #content and ## content',
setup: {
commits: ['abcdefg1']
}
}
]
}
expect(result.levels[0].setup).toEqual(expected.levels[0].setup)
})

describe('config', () => {
it('should parse the tutorial config', () => {
const md = `# Title
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp