├── miniprogram ├── pages │ ├── other │ │ ├── index.json │ │ ├── index.wxss │ │ ├── index.wxml │ │ └── index.js │ └── index │ │ ├── index.wxss │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.js ├── app.js ├── sitemap.json └── app.json ├── plugin ├── index.js ├── components │ ├── wxparser │ │ ├── wxparser.json │ │ ├── wxparser.wxml │ │ ├── wxparser.js │ │ └── wxparser.wxss │ └── tmpl │ │ ├── tmpl.js │ │ └── tmpl.wxml ├── images │ ├── play.png │ └── pause.png ├── plugin.json └── api │ ├── index.js │ ├── elements.js │ ├── utils.js │ ├── codeTransformation.js │ ├── htmlparser.js │ └── html2json.js ├── .gitignore ├── doc ├── picture.jpg └── README.md ├── package.json ├── .eslintrc.js ├── project.config.json ├── README.md └── yarn.lock /miniprogram/pages/other/index.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /miniprogram/pages/other/index.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugin/index.js: -------------------------------------------------------------------------------- 1 | module.exports = {} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | node_modules 3 | -------------------------------------------------------------------------------- /miniprogram/pages/other/index.wxml: -------------------------------------------------------------------------------- 1 | 其它页面 2 | -------------------------------------------------------------------------------- /miniprogram/pages/other/index.js: -------------------------------------------------------------------------------- 1 | // pages/other/index.js 2 | Page({}) -------------------------------------------------------------------------------- /plugin/components/wxparser/wxparser.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /miniprogram/app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch: function () { 4 | } 5 | }) -------------------------------------------------------------------------------- /doc/picture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifanrx/wxParser-plugin/HEAD/doc/picture.jpg -------------------------------------------------------------------------------- /plugin/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifanrx/wxParser-plugin/HEAD/plugin/images/play.png -------------------------------------------------------------------------------- /plugin/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifanrx/wxParser-plugin/HEAD/plugin/images/pause.png -------------------------------------------------------------------------------- /miniprogram/pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | .parser { 2 | margin: 100px 0; 3 | } 4 | 5 | .em { 6 | background: red; 7 | } -------------------------------------------------------------------------------- /miniprogram/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "wxparser": "plugin://myPlugin/wxparser" 4 | } 5 | } -------------------------------------------------------------------------------- /plugin/plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "publicComponents": { 3 | "wxparser": "components/wxparser/wxparser" 4 | }, 5 | "main": "index.js" 6 | } -------------------------------------------------------------------------------- /miniprogram/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /plugin/components/wxparser/wxparser.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 |