21 Commits

Author SHA1 Message Date
renovate[bot]
02af2b4443 fix(deps): update dependency @tanstack/react-query to v5 2024-04-03 08:26:53 +00:00
renovate[bot]
82cc2a3df4 chore(deps): update lerna monorepo to v8 (#40)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 16:26:12 +08:00
renovate[bot]
b5596d76b6 fix(deps): update dependency styled-components to ~6.1.0 (#39)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 16:25:25 +08:00
renovate[bot]
d2c2746420 chore(deps): update dependency tsbb to ~4.2.0 (#34)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 16:17:38 +08:00
jaywcjlove
ef1ed54be7 chore: add sponsor badge. 2023-11-25 21:04:59 +08:00
jaywcjlove
e3a3cf5ff6 chore: update .github/workflows/ci.yml 2023-08-25 11:51:58 +08:00
jaywcjlove
4f4ad71d09 chore: update .github/workflows/ci.yml 2023-08-25 11:29:03 +08:00
jaywcjlove
3b32e76f65 style: modify theme style. 2023-08-25 11:28:47 +08:00
jaywcjlove
056b792519 chore: update .github/workflows/ci.yml 2023-08-25 11:14:20 +08:00
jaywcjlove
de98442b3c chore: update workflows config. 2023-08-25 00:03:40 +08:00
jaywcjlove
8bf24877bf fix: Fix {name} does not correspond to supportd language and throw an error. 2023-08-22 17:44:56 +08:00
jaywcjlove
ad546bfb6c chore(deps): update dependencies. 2023-08-22 17:42:24 +08:00
renovate[bot]
bac929d894 chore(deps): update dependency tsbb to ~4.1.0 (#20)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 15:58:05 +08:00
jaywcjlove
ab1c043931 chore(deps): update dependency tsbb to v4 #20
https://github.com/jaywcjlove/tsbb/issues/439
2023-03-30 21:51:54 +08:00
jaywcjlove
5afb09a715 style: modify underscore themes. 2022-10-24 23:00:59 +08:00
jaywcjlove
df79dcf694 chore(deps): Update @uiw/react-markdown-editor dependency to ^5.10.0 2022-09-22 14:15:54 +08:00
jaywcjlove
33a60420a4 released v2.3.3 2022-09-17 11:32:18 +08:00
jaywcjlove
c7dba6d5de website: update commamnd style. 2022-09-17 11:31:43 +08:00
jaywcjlove
ed596a7403 chore: update workflows config. 2022-09-13 12:40:35 +08:00
jaywcjlove
7f28e6ada1 released v2.3.2 2022-09-13 11:29:17 +08:00
renovate[bot]
df10f96a65 chore(deps): update dependency electron to v20 (#8) 2022-09-13 11:01:04 +08:00
15 changed files with 54 additions and 45 deletions

View File

@@ -6,12 +6,13 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
@@ -124,7 +125,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install
run: npm install --build-from-source
@@ -143,6 +144,8 @@ jobs:
run: npm run deps
- run: npm run build:app
- working-directory: electron/app/dist
run: ls -R
- uses: actions/upload-artifact@v3
with:
@@ -158,7 +161,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm run hoist
@@ -174,6 +177,8 @@ jobs:
run: npm run deps
- run: npm run build:app
- working-directory: electron/app/dist
run: ls -R
- uses: actions/upload-artifact@v3
with:
@@ -189,7 +194,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm run hoist
- run: npm run build
@@ -205,6 +210,8 @@ jobs:
run: npm run deps
- run: npm run build:app
- working-directory: electron/app/dist
run: ls -R
- uses: actions/upload-artifact@v3
with:
@@ -223,7 +230,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- uses: actions/download-artifact@v3
with:

View File

@@ -2,6 +2,9 @@
<h1 align="center">微信公众号 Markdown 编辑器</h1>
</div>
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![CI](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)
[![微信公众号 Markdown 编辑器](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)
微信公众号文章 Markdown 在线编辑器,使用 markdown 语法创建一篇简介美观大方的微信公众号图文。由于发版本麻烦,和一些功能无法扩展停滞开发了,未来不再开发 Chrome 的插件(暂存在 chrome 分支),通过 web 版本定制更丰富的功能。

View File

@@ -2,7 +2,7 @@
"name": "wxmp",
"description": "微信公众号 Markdown 编辑器",
"homepage": "https://github.com/jaywcjlove/wxmp.git",
"version": "2.3.1",
"version": "2.3.3",
"main": "main.js",
"author": "Kenny Wong <398188662@qq.com>",
"private": true,
@@ -18,13 +18,13 @@
"build": "npm run copy && cross-env NODE_ENV=production electron-builder build --publish=never --config config.json"
},
"dependencies": {
"@wcj/wxmp-main": "2.3.1"
"@wcj/wxmp-main": "2.3.3"
},
"devDependencies": {
"@wcj/wxmp-preload": "2.3.1",
"cpy-cli": "4.2.0",
"electron": "19.0.5",
"@wcj/wxmp-preload": "2.3.3",
"cpy-cli": "^5.0.0",
"electron": "20.1.3",
"electron-builder": "23.3.3",
"website": "2.3.1"
"website": "2.3.3"
}
}

View File

@@ -1,16 +1,16 @@
{
"name": "@wcj/wxmp-main",
"version": "2.3.1",
"version": "2.3.3",
"main": "./lib/index.js",
"private": true,
"scripts": {
"build": "tsbb build --disable-babel --file-names src/index.ts",
"watch": "tsbb watch --disable-babel --file-names src/index.ts"
"build": "tsbb build",
"watch": "tsbb watch"
},
"files": [
"lib"
],
"devDependencies": {
"electron": "19.0.5"
"electron": "20.1.3"
}
}

View File

@@ -1,16 +1,16 @@
{
"name": "@wcj/wxmp-preload",
"version": "2.3.1",
"version": "2.3.3",
"main": "./lib/index.js",
"private": true,
"scripts": {
"build": "tsbb build --disable-babel --file-names src/index.ts",
"watch": "tsbb watch --disable-babel --file-names src/index.ts"
"build": "tsbb build",
"watch": "tsbb watch"
},
"files": [
"lib"
],
"devDependencies": {
"electron": "19.0.5"
"electron": "20.1.3"
}
}

View File

@@ -1,4 +1,4 @@
{
"version": "2.3.1",
"version": "2.3.3",
"packages": ["website", "electron/*"]
}

View File

@@ -9,18 +9,17 @@
"version": "lerna version --exact --force-publish --no-push --no-git-tag-version",
"prepare": "husky install",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick --staged",
"hoist": "lerna bootstrap --hoist",
"clean": "lerna clean --yes"
},
"license": "MIT",
"devDependencies": {
"@lerna/legacy-package-management": "^8.0.0",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"lerna": "5.5.1",
"prettier": "^2.7.1",
"pretty-quick": "~3.1.3",
"tsbb": "^3.7.5"
"lerna": "^8.0.0",
"prettier": "^3.0.2",
"tsbb": "~4.2.0"
},
"workspaces": {
"packages": [

View File

@@ -1,6 +1,6 @@
{
"name": "website",
"version": "2.3.1",
"version": "2.3.3",
"private": true,
"scripts": {
"start": "kkt start",
@@ -9,7 +9,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@tanstack/react-query": "^4.2.3",
"@tanstack/react-query": "^5.0.0",
"@uiw/codemirror-theme-abcdef": "^4.11.6",
"@uiw/codemirror-theme-androidstudio": "^4.11.6",
"@uiw/codemirror-theme-atomone": "^4.11.6",
@@ -25,11 +25,10 @@
"@uiw/codemirror-theme-xcode": "^4.11.6",
"@uiw/react-back-to-top": "^1.2.0",
"@uiw/react-github-corners": "^1.5.15",
"@uiw/react-markdown-editor": "^5.7.0",
"@uiw/react-markdown-editor": "^5.11.2",
"@wcj/dark-mode": "^1.0.15",
"css-tree": "^2.2.1",
"react": "^18.2.0",
"react-code-preview-layout": "^2.0.4",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.3.0",
"react-router-dom": "^6.3.0",
@@ -41,17 +40,16 @@
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"styled-components": "^5.3.5",
"styled-components": "~6.1.0",
"unified": "^10.1.2"
},
"devDependencies": {
"@kkt/less-modules": "^7.2.0",
"@kkt/raw-modules": "^7.2.0",
"@kkt/scope-plugin-options": "^7.2.0",
"@types/css-tree": "^1.0.7",
"@types/css-tree": "^2.3.1",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/styled-components": "^5.1.25",
"kkt": "^7.2.0",
"markdown-react-code-preview-loader": "^2.1.2"
},

View File

@@ -4,7 +4,7 @@ import styled from 'styled-components';
const Link = styled(NavLink)`
font-size: 0.8rem;
line-height: 0.8rem;
line-height: 0.7rem;
text-decoration: none;
padding: 0.18rem 0.3rem;
&:hover {

View File

@@ -12,7 +12,7 @@ const Select = styled.select`
padding: 0 0.2rem 0 0.2rem;
margin: 0;
font-family: inherit;
font-size: 0.8rem;
font-size: 0.7rem;
outline: none;
height: 1.15rem;
cursor: inherit;

View File

@@ -5,7 +5,7 @@ a {
h1 {
color: inherit;
font-size: 16px;
font-size: 18px;
font-weight: bold;
}
@@ -32,7 +32,7 @@ h4 {
p {
color: initial;
font-size: 14px;
font-size: 16px;
line-height: 1.5em;
}

View File

@@ -11,7 +11,7 @@ h1 {
line-height: 1.75;
font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;
font-size: 16px;
font-size: 18px;
font-weight: bold;
margin: 2em auto 1em;
padding: 0 1em;
@@ -63,7 +63,7 @@ li {
}
p {
font-size: 14px;
font-size: 16px;
line-height: 1.5em;
padding: 0.5em 0 !important;
margin-bottom: 0 !important;

View File

@@ -11,7 +11,7 @@ h1 {
line-height: 1.75;
font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;
font-size: 16px;
font-size: 18px;
font-weight: bold;
margin: 2em auto 1em;
padding: 0 1em;
@@ -63,7 +63,7 @@ li {
}
p {
font-size: 14px;
font-size: 16px;
line-height: 1.5em;
padding: 0.5em 0 !important;
margin-bottom: 0 !important;

View File

@@ -11,7 +11,7 @@ h1 {
line-height: 1.15;
font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;
font-size: 16px;
font-size: 18px;
font-weight: bold;
margin: 2em auto 1em;
padding: 0 1em 0.3em 1em;
@@ -37,7 +37,7 @@ h3 {
line-height: 1.2;
font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;
font-size: 1.1em;
font-size: 14px;
font-weight: bold;
margin: 2em 8px 0.75em 0;
padding-left: 8px;
@@ -59,7 +59,7 @@ li {
}
p {
font-size: 14px;
font-size: 16px;
line-height: 1.5em;
padding: 0.5em 0 !important;
margin-bottom: 0 !important;

View File

@@ -32,7 +32,9 @@ export function markdownToHTML(md: string, css: string, opts: MarkdownToHTMLOpti
.use(remarkParse)
.use(remarkGfm)
.use(remarkRehype, { allowDangerousHtml: true })
.use(rehypePrism)
.use(rehypePrism, {
ignoreMissing: true,
})
.use(rehypeRaw)
.use(rehypeIgnore, {})
.use(rehypeAttrs, { properties: 'attr' })