muesli / markscribe

Your personal markdown scribe with template-engine and Git(Hub) & RSS powers 📜
MIT License
366 stars 40 forks source link

Allow HTML comments to be generated #63

Closed jetzlstorfer closed 1 year ago

jetzlstorfer commented 1 year ago

closes #62 and allows to define HTML comments that will be part of the generated file

muesli commented 1 year ago

I think I would expect a comment method to automatically apply the comment markup. The problem here is that there's no official standard for markdown (CommonMark standard) comments.

Raw HTML comments can already be added to a template without the need for a helper method.

jetzlstorfer commented 1 year ago

Hi @muesli exactly the second point - HTML comments - are the reason for my PR. Here is what happens:

I take the current version of the master branch and run this code (based on the original template):

### Hi there 👋

<!-- raw html -->

#### 👷 Check out what I'm currently working on
{{range recentContributions 10}}
- [{{.Repo.Name}}]({{.Repo.URL}}) - {{.Repo.Description}} ({{humanize .OccurredAt}})
{{- end}}
....

the result is rendered like this:

### Hi there 👋

#### 👷 Check out what I'm currently working on

- [jetzlstorfer/plattentests-go](https://github.com/jetzlstorfer/plattentests-go) - creates a spotify playlist based on most recent record reviews from my favourite music website plattentests.de 💿 (today)
...

As you can see, the HTML comment is now gone. Therefore I implemented the comment function that keeps the comment.

jetzlstorfer commented 1 year ago

Provided a way easier solution based on the feedback in #62

muesli commented 1 year ago

Thank you for testing & confirming, as well as updating your PR!

ansidev commented 1 year ago

@jetzlstorfer @muesli

I don't know how you have tested this PR. However, it doesn't work as described.

Reproduction repository: https://github.com/ansidev/markscribe-test-01

The latest tag is pointing to v0.6.0.

muesli commented 1 year ago

Can you be a bit more specific? What isn't working?

ansidev commented 1 year ago

Can you be a bit more specific? What isn't working?

@muesli The latest tag is pointing to v0.6.0.

muesli commented 1 year ago

@muesli The latest tag is pointing to v0.6.0.

Correct. What's the issue?

ansidev commented 1 year ago

@muesli The latest tag is pointing to v0.6.0.

Correct. What's the issue?

@muesli v0.6.0 does not include this PR. I guess you should bump the version to v0.6.1.

And please also update the following projects:

muesli commented 1 year ago

@muesli v0.6.0 does not include this PR. I guess you should bump the version to v0.6.1.

Sorry, I thought you meant there's an issue with this particular change. It will be part of v0.7.0, sometime soon.

And please also update the following projects:

* GitHub Actions: https://github.com/muesli/readme-scribe/\

What updates do you expect there?

* Associate Docker Image: `fribbledom/markscribe` (I guess you don't public the source code because I can't find the source repository)

The Dockerfile is in this repo.

ansidev commented 1 year ago

@muesli v0.6.0 does not include this PR. I guess you should bump the version to v0.6.1.

Sorry, I thought you meant there's an issue with this particular change. It will be part of v0.7.0, sometime soon.

And please also update the following projects:

* GitHub Actions: https://github.com/muesli/readme-scribe/\

What updates do you expect there?

* Associate Docker Image: `fribbledom/markscribe` (I guess you don't public the source code because I can't find the source repository)

The Dockerfile is in this repo.

@muesli It's OK. I just wait for the new release 😀.