Add hard wrap to markdown
This commit is contained in:
parent
c9f8fbe098
commit
3c6108298c
2 changed files with 2 additions and 1 deletions
|
@ -155,6 +155,7 @@ def markdown(value, style, math_engine=None, lazy_load=False):
|
||||||
inline=AwesomeInlineLexer,
|
inline=AwesomeInlineLexer,
|
||||||
parse_block_html=1,
|
parse_block_html=1,
|
||||||
parse_inline_html=1,
|
parse_inline_html=1,
|
||||||
|
hard_wrap=True,
|
||||||
)
|
)
|
||||||
result = markdown(value)
|
result = markdown(value)
|
||||||
if post_processors:
|
if post_processors:
|
||||||
|
|
|
@ -266,7 +266,7 @@ let META_HEADER = [
|
||||||
{% if last_msg and not request.profile.mute %}
|
{% if last_msg and not request.profile.mute %}
|
||||||
if ($("#chat-input").val().trim()) {
|
if ($("#chat-input").val().trim()) {
|
||||||
var body = $('#chat-input').val().trim();
|
var body = $('#chat-input').val().trim();
|
||||||
body = body.split('\n').join('\n\n');
|
// body = body.split('\n').join('\n\n');
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
body: body,
|
body: body,
|
||||||
|
|
Loading…
Add table
Reference in a new issue