优化代码块
parent
fbdef3c56f
commit
1155252604
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue