walle / gimli

Utility for converting markup files to pdf files
https://github.com/walle/gimli
MIT License
538 stars 44 forks source link

Ignore blank line between list item and blockquote #71

Closed m-baumgartner closed 9 years ago

m-baumgartner commented 9 years ago

Hello,

I have a markdown document containing mostly a list (it's a software release note) that I want to convert to PDF.

To declare elements in the release note i'm using mardown's unordered lists like following :

* feature 1
* feature 2

On some feature I want to display an additional phrase to give a bit more info. In that case i'm using blockquotes (see: http://daringfireball.net/projects/markdown/syntax#list) like following :

* feature 1
* feature 2
>More info about feature 2

* feature 3

I want different css styles to be applied to the list items and the blockquotes. The problem is that if I write it this way gimli process it as part of the list item and appli the 'ul' style. If I want gimli to take it as another paragraph i need to leave a blank line like the following :

* feature 1
* feature 2

>More info about feature 2

* feature 3

... but then my PDF contain a blank line and i don't want it. Is there a way to sort it out?

m-baumgartner commented 9 years ago

If anyone is wondering, i found a workaround by tweeking margin-top and margin-bottom CSS properties of the resulting HTML markups ( blockquotes & ul ). With negative values.