Giter Site home page Giter Site logo

Comments (11)

alienlebarge avatar alienlebarge commented on July 19, 2024

Thanks for the mention and the offer to collaborate.
I may try it out tonight.

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

Fixed a pretty gnarly bug (no text would be output in bare text strings!), have now got full test coverage, added a number of different tests, and written up some documentation.

Take a look and let me know if this all makes sense, and that I’ve covered everything!

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

Baring any other issues, looks like this package is ready to be published. Two questions:

  1. Would you like to be add to the contributors field in package.json? If so, with what details?

  2. What do you think to the name of this package? I note your function was called socialHandle, maybe it should be that? Here are some options I’ve considered:

    • markdown-it-social-mention
    • markdown-it-federated-mention
    • markdown-it-handle
    • markdown-it-social-handle
    • markdown-it-user-handle
    • markdown-it-username-handle
    • markdown-it-account-handle

    Including ‘handle’ is perhaps a better option. I don’t know if there’s a more specific name for the @username@host format. Mentions may happen as a result of using this plugin, but not necessarily, so maybe that shouldn’t be included in the name?

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

Nope… found another bug… need to add some more tests for strings that contain links, but not with a matching string.

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

Fixed!

from markdown-it-handle.

alienlebarge avatar alienlebarge commented on July 19, 2024
  1. Would you like to be add to the contributors field in package.json? If so, with what details?

Nope thanks. You are the personne who does the job ;)

  1. What do you think to the name of this package? I note your function was called socialHandle, maybe it should be that? Here are some options I’ve considered:
  • markdown-it-social-mention
  • markdown-it-federated-mention
  • markdown-it-handle
  • markdown-it-social-handle
  • markdown-it-user-handle
  • markdown-it-username-handle
  • markdown-it-account-handle

Including ‘handle’ is perhaps a better option. I don’t know if there’s a more specific name for the @username@host format. Mentions may happen as a result of using this plugin, but not necessarily, so maybe that shouldn’t be included in the name?

I agree with you.
For me, the mention is the whole post: the handle and the content.

I have done some researche and "handle" seems to be the most common word to describe @username@host.

As this plugin converts the handle and not the mention, using the word "handle" in the name seems more appropriate than "mention".
I won't use the word social. The site is not always a social network. Vimeo ([email protected]) is not really a social network.

For me markdown-it-user-handle and markdown-it-username-handle are the two best one.

from markdown-it-handle.

alienlebarge avatar alienlebarge commented on July 19, 2024

I get errors with the plugin. Apparently it's due to something in the markdown's front matter.
alienlebarge/alienlebargech-v3#178

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

I’ve added an additional check for children before checking for children[0].type, which may fix this.

Also note I’ve updated the package name to markdown-it-handle.

from markdown-it-handle.

alienlebarge avatar alienlebarge commented on July 19, 2024

I’ve added an additional check for children before checking for children[0].type, which may fix this.

Nice !
Sadly, I have updated the plugin but still get the error. Will investigate when I get time

Also note I’ve updated the package name to markdown-it-handle.

👌 perfect

from markdown-it-handle.

alienlebarge avatar alienlebarge commented on July 19, 2024

I Found the problem alienlebarge/alienlebargech-v3#178 (comment)

Everything is ok for me now 😅

from markdown-it-handle.

paulrobertlloyd avatar paulrobertlloyd commented on July 19, 2024

Released!

from markdown-it-handle.

Related Issues (1)

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.