优化代码块

master
宇天 2021-01-12 20:09:19 +08:00
parent fbdef3c56f
commit 1155252604
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "org.bytedo.epub",
"version": "1.0.1",
"version": "1.1.0",
"description": "E-pub Reader",
"main": "src/main.js",
"scripts": {

View File

@ -86,6 +86,10 @@ module.exports = function(app, createViewWindow) {
.replace(/<pre><code>/g, '<wc-code>')
.replace(/<\/code><\/pre>/g, '</wc-code>')
htm = htm
.replace(/<pre>/g, '<wc-code>')
.replace(/<\/pre>/g, '</wc-code>')
htm = htm.replace(/<wc-code>([\w\W]*?)<\/wc-code>/g, function(
m,
s