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

markdown format in the overview page #46

Closed
xiaopeng163 opened this issue Jul 12, 2017 · 6 comments
Closed

markdown format in the overview page #46

xiaopeng163 opened this issue Jul 12, 2017 · 6 comments

Comments

@xiaopeng163
Copy link

in the overview page, the contents of the post will be shown as the raw format, if there are some markdown format block, it will only show the original text, so could we add markdown highlight in the overview page?

screen shot 2017-07-12 at 2 36 17 pm

@bencentra
Copy link
Owner

I haven't tried it live, but you could try removing the "strip_html" filter from this code in index.html: https://github.com/bencentra/centrarium/blob/master/index.html#L22-L24. If you have lots of text formatting (especially headers), it may not look pretty.

@xiaopeng163
Copy link
Author

thanks. but if I remove these lines, it will only show the title of each post.

@bencentra
Copy link
Owner

bencentra commented Jul 12, 2017 via email

@xiaopeng163
Copy link
Author

OK, tried. it has problem like this:
screen shot 2017-07-13 at 7 16 27 am

@bencentra
Copy link
Owner

If the problem is it renders the complete HTML with line breaks and everything, that's not a problem - it's the expected behavior :) The markdown gets compiled to HTML by jekyll when assembling the index page, I don't know if there's a way to keep it.

@xiaopeng163
Copy link
Author

ok, thanks

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

2 participants