csqa icon indicating copy to clipboard operation
csqa copied to clipboard

Markdown support with code formatting

Open kakasuarez opened this issue 5 years ago • 6 comments

Added code highlighting and markdown support to the question body and answers.

code_formatting

However, normal links inside the body will not work now. Instead they will have to be added in markdown syntax.

links links2

This requires the Python-Markdown package.

The language should be added when starting the code block. Like this: ```python print("hello") ```

kakasuarez avatar Jul 14 '20 09:07 kakasuarez

I realized, it may not be the best idea to load the markdown_styles.css file in the base.html file. Maybe it should be added only to the specific pages where code formatting is required.

kakasuarez avatar Jul 16 '20 14:07 kakasuarez

Hey 👋🏼 , Nice work you did there. Have you contacted yk about this pull request if not then you can do it through the Discord server. Join here

ghost avatar Dec 08 '20 07:12 ghost

Hey! Thanks, but I was a little worried about the security. Also, I did contact YK on the discord server when I created this pull request. He said he would look into it.

kakasuarez avatar Dec 08 '20 08:12 kakasuarez

oh okay, I have asked YK to review the Pull Request. so he might review it when he is free 🙂 . Nice work by the way 👍🏼

ghost avatar Dec 08 '20 10:12 ghost

Hi! Sorry about the delay again. I'm actually trying to figure out a way to spend more time on this project although I'm not sure if I'll be able to... I'll keep you updated, anyway.

ykdojo avatar Dec 11 '20 03:12 ykdojo

Hi! Sorry about the delay again. I'm actually trying to figure out a way to spend more time on this project although I'm not sure if I'll be able to... I'll keep you updated, anyway.

@ykdojo No problem, take your time 😄

ghost avatar Dec 11 '20 03:12 ghost