eduardoboucas / staticman

πŸ’ͺ User-generated content for Git-powered websites
https://staticman.net
MIT License
2.42k stars 541 forks source link

Comment PR "message" field broken by newlines #262

Open mrcnski opened 5 years ago

mrcnski commented 5 years ago

Here's an example: https://github.com/m-cat/bytedude.com/pull/2 πŸ˜†

andrejbauer commented 4 years ago

This bug bugs me too. It's created by the use of the markdown-table package, which is maintained by @wooorm. Maybe we should ask the maintainer what a possible solution might be.

Is there even a way to have paragraphs inside Markdown table cells?

From the staticman side of things, the problem could be fixed if staticman allowed the user to not use tables, but provide their own template. For example, I would prefer each field in the PR to have its own header ###### Field name followed by the content of the comment.

wooorm commented 4 years ago

Well, you asked πŸ˜…

It’s not possible to have line breaks in table cells.

You can use either HTML <br>s, or tables though, if you only care about GH markdown. Like so.