You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm new to markdown-pdf. I have understood that remarkable is the underlying markdown parser. According to the remarkable docs, tables using GFM syntax are supported and enabled by default. However, when I tested this, the PDF output looks nothing like a nicely formatted table:
The corresponding markdown is:
| Key | Description || ------- | ------------------------------------------------------------- || text | A string representing the search query || count |*(optional)* The number of results to return. Defaults to max |
Do I need to do anything special to enable this functionality or to format the table?
The text was updated successfully, but these errors were encountered:
Yeah, it took me a while to figure this out as well.
I believe it's the leading and trailing pipe symbols (|). Change your markdown code to look more like this:
Key | Description
-------|-------------------------------------------------------------
text | A string representing the search query
count | *(optional)* The number of results to return. Defaults to max
I have the same markdown style as you @robguinness and changing it did not work.
You need to set a css style for your table, e.g. table, th, td { border: 1px solid black; }
Then have the markdown-pdf use your css file. I added the above to the css/pdf.css file and linked to it in this way markdown-pdf -s css/pdf.css
Hi, I'm new to markdown-pdf. I have understood that remarkable is the underlying markdown parser. According to the remarkable docs, tables using GFM syntax are supported and enabled by default. However, when I tested this, the PDF output looks nothing like a nicely formatted table:
The corresponding markdown is:
Do I need to do anything special to enable this functionality or to format the table?
The text was updated successfully, but these errors were encountered: