瀏覽代碼

raw 추가

Surplus_Up (2DU) 6 年之前
父節點
當前提交
eb3cfb2a93
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      route/tool/init.py
  2. 2 0
      route/tool/mark.py

+ 1 - 1
route/tool/init.py

@@ -29,7 +29,7 @@ server_set_var = {
         'display' : 'Markup',
         'require' : 'select',
         'default' : 'namumark',
-        'list' : ['namumark', 'markdown']
+        'list' : ['namumark', 'markdown', 'raw']
     },
     'encode' : {
         'display' : 'Encryption method',

+ 2 - 0
route/tool/mark.py

@@ -47,6 +47,8 @@ def namumark(title, data, num, include):
         data = namu(conn, data, title, num, include)
     elif rep_data[0][0] == 'markdown':
         data = markdown(conn, data, title, num)
+    elif rep_data[0][0] == 'raw':
+        data = [data, '', []]
     else:
         data = ['', '', []]