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

emojis and bold text are not displaying #4

Closed
henryhe1 opened this issue Apr 6, 2020 · 6 comments
Closed

emojis and bold text are not displaying #4

henryhe1 opened this issue Apr 6, 2020 · 6 comments
Labels
question Further information is requested

Comments

@henryhe1
Copy link

henryhe1 commented Apr 6, 2020

not recognizing emojis or bold text from markdown. Is this something I have to make a custom CSS for?

italics currently work

@henryhe1
Copy link
Author

henryhe1 commented Apr 6, 2020

Seems like any html in markdown is not being generated. Including embeds, emojis, etc

@dataCobra dataCobra added the question Further information is requested label Apr 7, 2020
@dataCobra
Copy link
Owner

dataCobra commented Apr 7, 2020

Hello @henryhe1,

since version 0.60.0 of Hugo, Goldmark is the default markdown handler.

Which means that inline HTML is disabled by default for safety. Here is the way you can enable it, if you are using config.toml:

[markup.goldmark.renderer]
unsafe = true

Before you use any inline HTML, make yourself familiar with the possibilities that Hugo offers.

emojis and bold text working fine in my testing environment. Could you show me a snippet how you're try to use this features?

@henryhe1
Copy link
Author

henryhe1 commented Apr 7, 2020

Hey @dataCobra , thanks for the reply! This is very helpful. I was mainly intending to use html for centering text as well as embedding soundcloud links.

And emojis do work for me now with enableEmoji set to true and using shorthands; before I was trying to copy the exampleSite emoji post which didn't work.

Regarding the bold text, I believe it is working when I zoom in, I think the bold font weight just looks similar to the normal font weight. How can I increase the weight of the bold font? Cheers, and great work on the theme! :)

image

@dataCobra
Copy link
Owner

@henryhe1 that is a strange behavior. But if you want to try a higher font-weight, you could add the following to your custom CSS.

b, strong {
  font-weight: 700;
}

Could you tell me which browser you're using to display the page?

Since I am currently working on the redesign, I can use this information to directly correct such errors for the future.

Thank you for reporting this errors 👍

@henryhe1
Copy link
Author

henryhe1 commented Apr 9, 2020

@dataCobra thanks a lot. It is working but just doesn't pop out on screen enough even with the weight at 700. I like Roboto but I just switched to OpenSans to make it easier. I am using Chrome. Looking forward to the redesign!

image

@dataCobra
Copy link
Owner

@henryhe1 thanks for your answer. 🙂

I will close this issue now. 👍

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

No branches or pull requests

2 participants