django-machina icon indicating copy to clipboard operation
django-machina copied to clipboard

Quote don't work

Open FlavienRx opened this issue 5 years ago • 1 comments

Hi guys !

Firstly thx for your great work !

Secondly I add Django-machina to my website but when a user want to quote a message, it works well when he is typing a message but don't work when post is displayed.

Do I need some js/npm or maybe I miss something in the documentation

Best regard,

Flave.

FlavienRx avatar Feb 25 '20 18:02 FlavienRx

@FlavienRx , I ran into something similar, although perhaps not identical. Code blocks worked when typing, but weren't displayed. The solution was fenced-code-blocks:

MACHINA_MARKUP_LANGUAGE = ('markdown2.markdown', {'safe_mode': True, 'extras': {'break-on-newline': True, 'fenced-code-blocks': None}})

(in the setting above, "None" is just a placeholder, because the dict key is what matters)

https://github.com/trentm/python-markdown2/wiki/Extras https://github.com/trentm/python-markdown2/wiki/fenced-code-blocks

sdarwin avatar Aug 11 '21 19:08 sdarwin