15 lines
203 B
Go
15 lines
203 B
Go
package compiler
|
|
|
|
import (
|
|
htmltomarkdown "github.com/JohannesKaufmann/html-to-markdown/v2"
|
|
)
|
|
|
|
func HTMLToMarkdown(
|
|
html string,
|
|
) (string, error) {
|
|
|
|
return htmltomarkdown.ConvertString(
|
|
html,
|
|
)
|
|
}
|