Some problems interpreting code ?!?
andretietz opened this issue · 4 comments
I just noticed on my website, linked markdown is not correctly interpreted into html. (See website article with the problem.)
Also, I noticed that every linebreak in markdown is translated into an html linebreak. Even though it shouldn't.
This is important for writing markdown, since at the moment I need to write every thing in a single line, which I don't want to have. This is part of the markdown definition:
- https://daringfireball.net/projects/markdown/syntax#p (two spaces + linebreak = linebreak)
- https://gist.github.com/shaunlebron/746476e6e7a4d698b373
Both of this problems are no parser(markdown-it) problems, according to this
I just noticed on my website, linked markdown is not correctly interpreted into html. (See website article with the problem.)
temporary solution
Would you please remove space from below line?
override fun adapt(call: Call<Any>): RETURN_TYPE {
registration[RequestIdentifier.identify(call.request())] = info
return adapter.adapt(call)
}
}
+```
-```
Indeed, I've overseen this. It solved the first problem (at least on my website)
The problem with the linebreaks still remaining.
Also found the problem with the line break.
by configuration linebreaks will be directly translated into <br />
Compare with the option for linebreaks here
Any config change doesn't seem to have any effect.
I just added:
markdown:
preset: 'zero'
to my main _config.yml
and as this wasn't working to the _config.yml
of my theme..
Both don't seem to have any effect.
Also found the problem with the line break.
You can changenode_modules/hexo-renderer-markdown-it/index.js
such as
hexo.config.markdown.render = Object.assign({
html: true,
xhtmlOut: false,
- breaks: true,
+ breaks: false,
linkify: true,
typographer: true,
quotes: '“”‘’'
}, hexo.config.markdown.render);```