mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: prettyPrint function move
This commit is contained in:
parent
6bce5947f0
commit
1740ac1cc8
@ -84,7 +84,7 @@
|
|||||||
<script src="libs/scripts/codemirror/format.js"></script>
|
<script src="libs/scripts/codemirror/format.js"></script>
|
||||||
|
|
||||||
<script src="libs/scripts/markdown.min.js"></script>
|
<script src="libs/scripts/markdown.min.js"></script>
|
||||||
<!-- <script src="libs/scripts/prettify.min.js"></script> -->
|
<script src="libs/scripts/prettify.min.js"></script>
|
||||||
<!-- <script src="libs/scripts/index.js"></script> -->
|
<!-- <script src="libs/scripts/index.js"></script> -->
|
||||||
<script src="libs/scripts/jquery.min.js"></script>
|
<script src="libs/scripts/jquery.min.js"></script>
|
||||||
<script src="libs/scripts/closebrackets.js"></script>
|
<script src="libs/scripts/closebrackets.js"></script>
|
||||||
@ -97,6 +97,9 @@
|
|||||||
window.console
|
window.console
|
||||||
&& window.console.log
|
&& window.console.log
|
||||||
&& (console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
|
&& (console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
|
||||||
|
setTimeout(() => {
|
||||||
|
document.body.addEventListener('load', prettyPrint())
|
||||||
|
}, 2000)
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@ -135,7 +135,6 @@ import {
|
|||||||
} from './scripts/util'
|
} from './scripts/util'
|
||||||
import DEFAULT_CONTENT from './scripts/default-content'
|
import DEFAULT_CONTENT from './scripts/default-content'
|
||||||
import DEFAULT_CSS_CONTENT from './scripts/themes/default-theme-css'
|
import DEFAULT_CSS_CONTENT from './scripts/themes/default-theme-css'
|
||||||
// import { prettyPrint } from 'prettify'
|
|
||||||
require('codemirror/mode/javascript/javascript')
|
require('codemirror/mode/javascript/javascript')
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
@ -485,11 +484,6 @@ export default {
|
|||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
|
||||||
updated () {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
// prettyPrint()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user