ykdojo / csqa

No longer working on this - currently working on https://github.com/ykdojo/kaguya/
172 stars 70 forks source link

Markdown support with code formatting #20

Open kakasuarez opened 4 years ago

kakasuarez commented 4 years ago

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 commented 4 years ago

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.

ghost commented 3 years ago

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

kakasuarez commented 3 years ago

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.

ghost commented 3 years ago

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 👍🏼

ykdojo commented 3 years ago

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.

ghost commented 3 years ago

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 😄