I created a native lib to read a .md file convert to string and the elm-markdown convert to HTML.
output is "# teste"
the typeof output is a string
when i use Markdown.toHtml [] variablewithstring i have:
(index):14120 Uncaught TypeError: src.replace is not a function
Please report this to https://github.com/chjj/marked.
at Lexer.lex ((index):14120)
at Function.Lexer.lex ((index):14120)
at marked ((index):14120)
at Object.render ((index):14079)
at render ((index):7811)
at (index):8984
at Object.callback ((index):2414)
at step ((index):3058)
at work ((index):3116)
Lexer.lex @ (index):14120
Lexer.lex @ (index):14120
marked @ (index):14120
render @ (index):14079
render @ (index):7811
(anonymous) @ (index):8984
(anonymous) @ (index):2414
step @ (index):3058
work @ (index):3116
I created a native lib to read a .md file convert to string and the elm-markdown convert to HTML.
output is "# teste" the typeof output is a string
when i use Markdown.toHtml [] variablewithstring i have:
(index):14120 Uncaught TypeError: src.replace is not a function Please report this to https://github.com/chjj/marked. at Lexer.lex ((index):14120) at Function.Lexer.lex ((index):14120) at marked ((index):14120) at Object.render ((index):14079) at render ((index):7811) at (index):8984 at Object.callback ((index):2414) at step ((index):3058) at work ((index):3116) Lexer.lex @ (index):14120 Lexer.lex @ (index):14120 marked @ (index):14120 render @ (index):14079 render @ (index):7811 (anonymous) @ (index):8984 (anonymous) @ (index):2414 step @ (index):3058 work @ (index):3116