Closed Juliiii closed 4 years ago
The PR is to solve two cases.
1、escape $
I found an issue which is opening #2 . I think it is a common case so that i fixed it by the way.
2、code str store in textarea instead of div
As you can see, the code str will be as a innerHTML of div element, which causes a problem. The problem is that when i copy a code like
const express = require('express') const app = express() app.get('/', function(req, res) { res.send('Hello Express') }) // don't forget to export! module.exports = app
and i paste it into vscode or other text editors, it will lose its format, eg:
So i change div to textarea to fix this case.
Hope to review these changes and merge these, becauce i need them recently. Thx!
@iamskok hi, please take time to review it, if have any problem, i will edit it. 🌹
@Juliiii Thank you for the contribution ❤️
The PR is to solve two cases.
1、escape $
I found an issue which is opening #2 . I think it is a common case so that i fixed it by the way.
2、code str store in textarea instead of div
As you can see, the code str will be as a innerHTML of div element, which causes a problem. The problem is that when i copy a code like
and i paste it into vscode or other text editors, it will lose its format, eg:
So i change div to textarea to fix this case.
Hope to review these changes and merge these, becauce i need them recently. Thx!