pandoc-moderncv icon indicating copy to clipboard operation
pandoc-moderncv copied to clipboard

Add support for table and bulleted points, block quotes

Open Swoorup opened this issue 10 years ago • 5 comments

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

Swoorup avatar Oct 26 '15 20:10 Swoorup

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

barraq avatar Oct 27 '15 07:10 barraq

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.

Swoorup avatar Oct 27 '15 15:10 Swoorup

@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.

barraq avatar Oct 27 '15 15:10 barraq

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?

Swoorup avatar Oct 27 '15 16:10 Swoorup

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

barraq avatar Oct 27 '15 16:10 barraq