mirror of https://gitlab.com/bashrc2/epicyon
Allow misskey markdown
parent
64f5f18a2f
commit
f18170c5dc
|
@ -93,7 +93,8 @@ def meta_data_node_info(base_dir: str,
|
||||||
"nodeName": domain,
|
"nodeName": domain,
|
||||||
"mailerEnabled": False,
|
"mailerEnabled": False,
|
||||||
"publicTimelineVisibility": {},
|
"publicTimelineVisibility": {},
|
||||||
"postFormats": ["text/plain", "text/html", "text/markdown"],
|
"postFormats": ["text/plain", "text/html",
|
||||||
|
"text/markdown", "text/x.misskeymarkdown"],
|
||||||
"FEPs": ["c648", "521a", "8fcf", "4ccd", "c118", "fffd",
|
"FEPs": ["c648", "521a", "8fcf", "4ccd", "c118", "fffd",
|
||||||
"1970", "0837", "7628", "2677", "5e53"]
|
"1970", "0837", "7628", "2677", "5e53"]
|
||||||
}
|
}
|
||||||
|
|
3
posts.py
3
posts.py
|
@ -139,7 +139,8 @@ def convert_post_content_to_html(message_json: {}) -> None:
|
||||||
return
|
return
|
||||||
if not obj_json.get('content'):
|
if not obj_json.get('content'):
|
||||||
return
|
return
|
||||||
if obj_json['mediaType'] != 'text/markdown':
|
if obj_json['mediaType'] not in ('text/markdown',
|
||||||
|
'text/x.misskeymarkdown'):
|
||||||
return
|
return
|
||||||
content_str = obj_json['content']
|
content_str = obj_json['content']
|
||||||
obj_json['content'] = markdown_to_html(content_str)
|
obj_json['content'] = markdown_to_html(content_str)
|
||||||
|
|
Loading…
Reference in New Issue