mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
markdown preview
This commit is contained in:
1 parent
86f67a0ec3
commit
5ca424da0b
15 files changed
+123
-104
No files matched your search
@@ -92,8 +92,9 @@ export default class VjCmEditor extends SimpleMDE {
|
||||
}
|
||||
|
||||
async markdown(text) {
|
||||
// FIXME preview wont update after first toggle
|
||||
const data = await request.ajax({
|
||||
url: '/preview',
|
||||
url: '/markdown',
|
||||
method: 'post',
|
||||
data: $.param({ text }, true),
|
||||
dataType: 'text',
|
||||
|
||||
Reference in new issue
Block a user