Coder Social home page Coder Social logo

Comments (3)

TimothyJones avatar TimothyJones commented on June 25, 2024

I'm not able to reproduce this -

mkdir example
cd example
touch readme.md
git add readme.md
git commit -m "feat: example <with tag>"
npx commit-and-tag-version

generates a changelog with:

## 1.1.0 (2024-01-15)


### Features

* example <with tag> dfa9580

As an aside, I think having markdown syntax in commit messages is actually helpful - as it lets you format code (useful for the tag syntax):

# note the single quotes
 git commit -m 'feat: example `<with tag>`' 

from commit-and-tag-version.

AmirHosseinKarimi avatar AmirHosseinKarimi commented on June 25, 2024

Yea, the generated changelog is correct. But the < & > characters will be parsed and won't shown in the output.
Also, I agree that having markdown syntax in the commit message is helpful, But I think it will be awesome if we can have an option to parse or escape it.

from commit-and-tag-version.

TimothyJones avatar TimothyJones commented on June 25, 2024

Ah, I see what you're getting at.

...characters will be parsed

Am I right in understanding that the issue is that they're parsed by markdown, because they weren't escaped at the time the markdown file is written?

I think escaping the characters that markdown interprets would be a bit unexpected, so this doesn't feel like a bug to me. But, I see how it might be useful to be able to do this with a config option.

This project is intended to be a wrapper around conventional-changelog. Conventional-changelog controls the writing of the changelog, and I think the package that knows how to write markdown is conventional-changelog-writer (although I'm not certain). You might want to open an issue / PR over there.

from commit-and-tag-version.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.