Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems interpreting code ?!? #144

Open
andretietz opened this issue Dec 14, 2020 · 4 comments
Open

Some problems interpreting code ?!? #144

andretietz opened this issue Dec 14, 2020 · 4 comments

Comments

@andretietz
Copy link

andretietz commented Dec 14, 2020

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:

Both of this problems are no parser(markdown-it) problems, according to this

@yoshinorin
Copy link
Member

yoshinorin commented Dec 14, 2020

@andretietz

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)
  }
}
+``` 
-```

@andretietz
Copy link
Author

Indeed, I've overseen this. It solved the first problem (at least on my website)

The problem with the linebreaks still remaining.

@andretietz
Copy link
Author

andretietz commented Dec 14, 2020

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.

@NosedN
Copy link

NosedN commented Feb 22, 2021

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);```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants