linkify-plugin-chinese
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

linkify-plugin-chinese

针对中文语境超链特殊格式处理

具体 case,参照(测试用例)[./tests/linkify-plugin-chinese.spec.ts]

install

    npm install linkifyjs linkify-html linkify-plugin-chinese --save

usage

import * as linkifyjs from 'linkifyjs';
import linkifyHtml from 'linkify-html';
import registerChinesePlugin from 'linkify-plugin-chinese';

registerChinesePlugin(linkifyjs);

// => 中文超链:<a href="https://www.baidu.com?a=1">https://www.baidu.com?a=1</a>,你好
const html = linkifyHtml('中文超链:https://www.baidu.com?a=1,你好');

Readme

Keywords

Package Sidebar

Install

npm i linkify-plugin-chinese

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

20.7 kB

Total Files

7

Last publish

Collaborators

  • zhangbobo