Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally render markdown in the commit message #451

Open
disfinder opened this issue Dec 28, 2022 · 2 comments
Open

Optionally render markdown in the commit message #451

disfinder opened this issue Dec 28, 2022 · 2 comments

Comments

@disfinder
Copy link

How about making diff-so-fancy render a basic Markdown in the git commit messages?
I was looking for a way to do any chaining/pipelining, but not sure if it is possible to render the commit message through one processor and the diff itself through another.
So even if it looks like Markdown is out of scope for a diff tool - there is no better way to make commit messages in the terminal look fancy. Many people will love such (optional and parameter-enabled) feature!

We are also looking for any feedback or ideas on how to make diff-so-fancy even fancier.

@OJFord
Copy link
Member

OJFord commented Dec 29, 2022

Interesting idea, but isn't what could be achieved in a terminal-agnostic way quite limited?

Bolding, inline code highlighting (background)... And that's all I can think of? Maybe blue-colour and underline URLs, but they wouldn't be rendered as hyperlinked text.

@disfinder
Copy link
Author

My personal list of conserns will looks like this:

  • URLs - because they might be quite long and ugly if not rendered
  • bolding - as often used for an emphasis - would be useful too
  • single backticks to highlight some particular term
  • --- - as a horizontal rule
  • blockquotes >
  • ordered/unordered lists (may not be even necessary, but achievable in terminal)

I hope people do not use triple backticks and code blocks in git messages - I believe there is a better place to store the code :) but if you were thinking about only background for ``` - then its seems easier to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants