git-journal icon indicating copy to clipboard operation
git-journal copied to clipboard

Markdown output appears to not render nicely on Github

Open nuxeh opened this issue 5 years ago • 5 comments

e.g.:

# Unreleased (2020-12-08):
- [Added] buffering of input data from a pipe (5a57cde)
    Alternative input data can now be provided by piping it to the built
    binary implementing the Aoc stuct.
- [Added] `git-journal` configuration (161b1dd)
- [Added] CLI parsing for input file to crate struct (bc15e92)
    This allows an alternative input file to be used rather than fetched
    input, useful for testing, or modifying the input.

While this seems like nice compact markdown, the description paragraphs get rendered in the same line as the change heading, something like this:

Screenshot from 2020-12-08 16-15-26

nuxeh avatar Dec 08 '20 16:12 nuxeh

Hey @nuxeh, thank you for providing the issue! Do you mind opening a PR for that fix? We might change it to something like:

- **Added:** Some feature

WDYT?

saschagrunert avatar Dec 09 '20 07:12 saschagrunert

Sure thing, I'm just not sure about how to integrate such a change, so what do you think would be the best way trigger this new type of output? A command line option, in the configuration? I think either could work, potentially.

But yes, agree on the format, however I'd also propose adding nested bullets to preserve the long descriptions as separate paragraphs, rather than being merged into the main change heading. And as a small thing, i think I prefer it slightly without the : after the tag. Maybe something like this:

# Unreleased (2020-12-08):

- **Added** buffering of input data from a pipe (5a57cde)
    - Alternative input data can now be provided by piping it to the built
      binary implementing the Aoc stuct.
- **Added** `git-journal` configuration (161b1dd)
- **Added** CLI parsing for input file to crate struct (bc15e92)
    - This allows an alternative input file to be used rather than fetched
      input, useful for testing, or modifying the input.

Which looks like:

Unreleased (2020-12-08):

  • Added buffering of input data from a pipe (5a57cde)
    • Alternative input data can now be provided by piping it to the built binary implementing the Aoc stuct.
  • Added git-journal configuration (161b1dd)
  • Added CLI parsing for input file to crate struct (bc15e92)
    • This allows an alternative input file to be used rather than fetched input, useful for testing, or modifying the input.

nuxeh avatar Dec 09 '20 11:12 nuxeh

Oh yeah the format makes sense to me. Yes making it an CLI option would probably a good move forward, not sure how to name such a flag.

saschagrunert avatar Dec 09 '20 11:12 saschagrunert

Would --github work?

nuxeh avatar Dec 09 '20 13:12 nuxeh

Would --github work?

Yeah I think it would. 👍

saschagrunert avatar Dec 09 '20 14:12 saschagrunert