-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed best practice recommendation for mid-word bold and italics, a… (
#41) * Removed best practice recommendation for mid-word bold and italics, as it should be the responsibility of the caller who is generating markdown for their target markdown viewer. * Simplified test and wording.
- Loading branch information
Showing
3 changed files
with
17 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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,17 @@ | ||
import { tsMarkdown } from './rendering'; | ||
|
||
describe('https://github.com/kgar/ts-markdown/issues/40', () => { | ||
describe('given text which contains multiple underscores within a single word', () => { | ||
const paragraphText = `Hello, t_word_with_underscores`; | ||
|
||
const entries = [ | ||
{ | ||
p: paragraphText, | ||
}, | ||
]; | ||
|
||
test('should be the same text that was originally provided', () => { | ||
expect(tsMarkdown(entries)).toBe(paragraphText); | ||
}); | ||
}); | ||
}); |
This file contains 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 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