-
The signature of const html = marked.parse('...') as string; |
Beta Was this translation helpful? Give feedback.
Answered by
UziTech
Mar 11, 2024
Replies: 1 comment
-
An extension can set marked in async mode so it returns a promise. docs If you don't use extensions, or know none of them are async, it is safe to cast to string. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jcubic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An extension can set marked in async mode so it returns a promise. docs
If you don't use extensions, or know none of them are async, it is safe to cast to string.