优化代码块
parent
fbdef3c56f
commit
1155252604
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "org.bytedo.epub",
|
"name": "org.bytedo.epub",
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"description": "E-pub Reader",
|
"description": "E-pub Reader",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -86,6 +86,10 @@ module.exports = function(app, createViewWindow) {
|
||||||
.replace(/<pre><code>/g, '<wc-code>')
|
.replace(/<pre><code>/g, '<wc-code>')
|
||||||
.replace(/<\/code><\/pre>/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(
|
htm = htm.replace(/<wc-code>([\w\W]*?)<\/wc-code>/g, function(
|
||||||
m,
|
m,
|
||||||
s
|
s
|
||||||
|
|
Loading…
Reference in New Issue