Markdown renderer inserts HTML, HEAD and BODY tags into page.content

35 views
Skip to first unread message

Stefan Björk

unread,
Apr 11, 2023, 5:30:11 AM4/11/23
to Hexo
I'm using the Minos theme (https://github.com/ppoffice/hexo-theme-minos). In the article.ejs file the rendered content is added like this:

<%- post.content %>

However, the output is a complete rendered HTML document:

<html><head></head><body><p>Content.</p></body></html>

I have no idea. It seems like hexo-renderer-marked outputs a complete HTML document, but this doesn't happen in other themes. What might be wrong? Is it me or the Minos theme?
Reply all
Reply to author
Forward
0 new messages