prettier
Internal library for prettifying files using prettier
.
prettify()β
function prettify(content, parser): Promise<undefined | string>
Defined in: prettier.ts:25
Internal
Prettify a string using
Parametersβ
contentβ
string
the string to be prettified.
parserβ
string
the prettier
parser to use.
Returnsβ
Promise
<undefined
| string
>
a prettified string, or undefined if an error occurred.
Seeβ
Remarksβ
This function logs a warning message on error.
prettifyMarkdown()β
function prettifyMarkdown(content): Promise<undefined | string>
Defined in: prettier.ts:57
Internal
Prettify a Markdown string using prettify and markdown
parser.
Parametersβ
contentβ
string
the string to be prettified.
Returnsβ
Promise
<undefined
| string
>
a prettified string, or undefined if an error occurred.
Remarksβ
Same as prettify(content, "markdown")
.