-
Notifications
You must be signed in to change notification settings - Fork 250
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
About Metadata Definition #9
Comments
Thanks for the feedback! I agree that getting the syntax highlighting to work is a bit too complicated as it stands. The way you've done it is correct, but I need to update the documentation to be more in line with this or preferably just make things easier by including a syntax highlighting template and the necessary markup with the base themes. As for metadata management, I'll probably move towards more header-based metadata, like I did with my latest project - ghost-render - take a look if you have the time, the killer feature is compatibility with themes written for the Ghost blogging platform. I'll probably backport a bunch of the functionality from that repo into markdown-styles once I have some time. |
Hi @edalorzo, I've now finally addressed all of these issues with the new
Thanks again for filing the issue, and hope the v2.0 release meets your needs a bit better. |
@mixu Awesome. I'll take a look over the week. Thanks a million! |
Awesome work on this project. I love it.
I downloaded the project yesterday and spent a few hours trying to make a few things work for me. So, I would like to make a couple of recommendations to improve documentation in the following precise aspects:
About the
meta.json
fileThe documentation explains how to set a simple property, but does not deal with nested directories. In my case I have distributed my markdown files in multiple nested directories. So, showing an example like this might be really useful:
This would make the
title
property available within the templates insidefoo/bar
directory.About Highlighting Support
The documentation in the official website is slightly different than that provided in Github.
This latter seems a bit better, but yet, no clear enough about how to enable syntax highlight. Perhaps having a couple of examples of really simple templates in the Github repository would be awesome.
I am not sure if I did right, but I managed to make it work.
I cloned one of the layouts I liked under a different name, and edited the
page.html
file to include thehightlight.js
library and a theme.And since the theme is a variable here, I configure it in my
meta.json
file.I also copied all highligh.js themes into my layout assets directory and also copied there the
highlight.pack.js
file I downloaded from the Highlight.js WebsiteI also had to remove the
{{styles}}
tag from the template to avoid these styles overwrite those from highlight.js.Finally, I ended up running the
generate-md
command as specified in the Github site, and not as specified in the official website.I am not even sure if this is the right way to do it, but if not it would be awesome to have a few examples of how to do it right to guide users like me.
Thanks for the great tool.
The text was updated successfully, but these errors were encountered: