mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-25 18:43:08 +07:00
Enable the Showdown option to support tables (#220)
* Add support for table rendering
This commit is contained in:
parent
9711b8142f
commit
611879133a
2
main.js
2
main.js
@ -16,7 +16,7 @@ function getText(textOrFile, convertMarkdown) {
|
|||||||
|
|
||||||
// Convert Markdown to HTML
|
// Convert Markdown to HTML
|
||||||
if (convertMarkdown) {
|
if (convertMarkdown) {
|
||||||
const converter = new showdown.Converter()
|
const converter = new showdown.Converter({tables: true})
|
||||||
text = converter.makeHtml(text)
|
text = converter.makeHtml(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user