espanso / hub

The official Espanso's package repository
MIT License
55 stars 141 forks source link

Add `html-colors` package #130

Closed danielvartan closed 2 months ago

danielvartan commented 3 months ago

Hi there,

I would like to contribute by adding a new package called html-colors to Espanso.

This package provides an easy way to insert HTML color codes directly into text. By typing shortcuts like ##red, the package automatically replaces them with their corresponding hex color codes (e.g., #FF0000). Additionally, it allows users to retrieve RGB color codes and color family information.

html-colors is designed to work seamlessly with the existing html-utils-package.

You can find more details about the package on its GitHub repository.

Thank you for considering this contribution. I appreciate your time and effort in maintaining Espanso!

Cheers! :)

smeech commented 2 months ago

Thank you. That appears good to go.

We've been having some problems with the Hub failing to construct details pages from the README.md files, so I'm consulting my colleague, @arabello, before we go ahead with the merge.

arabello commented 2 months ago

https://github.com/espanso/hub-frontend/pull/45 is merged, we can go ahead. I can't assure you ATM if your README will be included correctly, but the overall package page should be listed.

smeech commented 2 months ago

Done.

Merged successfully: https://hub.espanso.org/html-colors, but no "Description", so I guess the README.md didn't come across?

arabello commented 2 months ago

Correct

      Failed to serialize readme for package "html-colors@0.1.0":
Error: [next-mdx-remote] error compiling MDX:
Unexpected character `!` (U+0021) before name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a comment in MDX, use `{/* text */}`)

More information: https://mdxjs.com/docs/troubleshooting-mdx
smeech commented 2 months ago

How odd!

smeech commented 1 month ago

Without line numbers it's difficult to be confident about where the problem arises. I'm not sure of the reason for the exclamation marks at the beginning of a couple of early, non-displayed lines. Can these be removed, and would this solve the problem if we re-did the merge?