Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending Markdown syntax to add @[somelink](http://somelink.com)? #47

Closed
skcin7 opened this issue Jan 25, 2016 · 2 comments
Closed

Extending Markdown syntax to add @[somelink](http://somelink.com)? #47

skcin7 opened this issue Jan 25, 2016 · 2 comments

Comments

@skcin7
Copy link

skcin7 commented Jan 25, 2016

How can I extend Markdown syntax so that the following code: @[Go to Microsoft](http://www.microsoft.com) converts to a link like this: Go to Microsoft.

This is the exact same as any ordinary Markdown link works, except it has an additional '@' character immediately preceding the first opening bracket.

The reason I want to do this is for an @mention system I'm working on.

I found the issue 24 but it's still not really explained how to do it there.

@skcin7 skcin7 changed the title Is it possible to extend Markdown syntax rules? Extending Markdown syntax to add @[somelink](http://somelink.com)? Jan 25, 2016
@GrahamCampbell
Copy link
Owner

Feel free to just make a standard extension for php commonmark, then register it in your config. This is how alt-three/emoji works.

@GrahamCampbell
Copy link
Owner

Feel free to check out that package as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants