Comments (11)
Thanks for the mention and the offer to collaborate.
I may try it out tonight.
from markdown-it-handle.
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.
Baring any other issues, looks like this package is ready to be published. Two questions:
-
Would you like to be add to the
contributors
field inpackage.json
? If so, with what details? -
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.
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.
Fixed!
from markdown-it-handle.
- Would you like to be add to the
contributors
field inpackage.json
? If so, with what details?
Nope thanks. You are the personne who does the job ;)
- 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.
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.
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.
I’ve added an additional check for
children
before checking forchildren[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.
I Found the problem alienlebarge/alienlebargech-v3#178 (comment)
Everything is ok for me now 😅
from markdown-it-handle.
from markdown-it-handle.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-it-handle.