-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove markdown builder (#461)
* refactor: remplace markdown-builder with internal code * refactor: tweaks * chore: add changeset * chore: fix tests local output (ansi codes)
- Loading branch information
1 parent
3258abb
commit bb2046a
Showing
7 changed files
with
54 additions
and
154 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,5 @@ | ||
--- | ||
"@callstack/reassure-compare": patch | ||
--- | ||
|
||
Replace unmaintained `markdown-builder` library with internal helper functions. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export function header1(text: string) { | ||
return `# ${text}\n`; | ||
} | ||
|
||
export function header2(text: string) { | ||
return `## ${text}\n`; | ||
} | ||
|
||
export function header3(text: string) { | ||
return `### ${text}\n`; | ||
} | ||
|
||
export function bold(text: string) { | ||
return `**${text}**`; | ||
} | ||
|
||
export function italic(text: string) { | ||
return `*${text}*`; | ||
} |
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
Oops, something went wrong.