Giter Site home page Giter Site logo

immccn123 / micromark-extension-luogu-user-mentions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

A micromark plugin to match @[username](/user/{uid}) or @[username](/space/show?uid={})

License: GNU Affero General Public License v3.0

JavaScript 100.00%

micromark-extension-luogu-user-mentions's Introduction

micromark-extension-luogu-user-mentions

一个 micromark 语法扩展,用来严格匹配诸如 @[username](/user/{uid}) 或者 @[username](/space/show?uid={uid}) 一类的 Mention。

洛谷社区就是这一类的 Mention。

HTML 插件不会渲染用户名的 Markdown 格式:

@[_username_](/user/998244)
<p><a href="https://www.luogu.com.cn/user/998244" data-uid="998244">_username_</a></p>

使用方法

参见 example.js

micromark-extension-luogu-user-mentions's People

Contributors

immccn123 avatar

Watchers

 avatar

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.