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

Add support for table and bulleted points, block quotes #17

Open
Swoorup opened this issue Oct 26, 2015 · 5 comments
Open

Add support for table and bulleted points, block quotes #17

Swoorup opened this issue Oct 26, 2015 · 5 comments

Comments

@Swoorup
Copy link

Swoorup commented Oct 26, 2015

Why don't I get nicely formatted and visual representation of these things after putting in markdown. Its just plain html

@barraq
Copy link
Owner

barraq commented Oct 27, 2015

could you please provide me with some example ? Do you have a repo where I can look ?

@Swoorup
Copy link
Author

Swoorup commented Oct 27, 2015

Since this is using markdown, I thought to try markdown syntax from here.
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet

The block quotes, and lists are just rendered as a chunk of text or as a paragraph without any formatting.

@barraq
Copy link
Owner

barraq commented Oct 27, 2015

@Swoorup again without access to your document I cannot help...

By default quotes and lists are activated in Pandoc, thus your error should come from a bad formating. For tables on the other hand, it requires Pandoc to be called with an option: see http://pandoc.org/README.html#tables for more information.

@Swoorup
Copy link
Author

Swoorup commented Oct 27, 2015

I have uploaded my changes here:

https://github.com/Swoorup/pandoc-moderncv/

The input cv.md
https://github.com/Swoorup/pandoc-moderncv/blob/master/cv/cv.md

Output html
https://github.com/Swoorup/pandoc-moderncv/blob/master/dist/cv.html

EDIT:
From the html, it seems everything is generated correctly. However, it could be that the stylesheets are missing styles for blockquotes and lists?

@barraq
Copy link
Owner

barraq commented Oct 27, 2015

Indeed the HTML generated looks good, except the nested blockquote which is escaped...

The thing is that the current stylesheet (or classic theme in devel branch) does not provide style for lists nor blockquotes. Actually the lists' style is rested by the compass-reset utility (see http://compass-style.org/reference/compass/reset/utilities/#mixin-global-reset).

Support for blockquote can easily be added (that will be in the devel branch), however for lists it is a bit more complicated. The best approach will be to try out custom class e.g.

- some list
- with items
{.someClass}

and therefore provide style for such custom class. I know that custom classes work in Markdown (I use them with my Nanoc websites) but I don't remember if it is supported by Pandoc (except for headers for which I know it is supported). If you have time to checkout that would be nice (I guess option inline_code_attributes will do the job)

Best

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

No branches or pull requests

2 participants