mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Fix markdown rendering on some pages, and add a link to the syntax help
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -470,13 +470,11 @@ em {
|
||||
border: solid #333 2px;
|
||||
}
|
||||
|
||||
/*---------------------------------PAGE--------------------------------*/
|
||||
/*-------------------------------MARKDOWN------------------------------*/
|
||||
|
||||
.page_content {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
background: $white-color;
|
||||
.markdown {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
code {
|
||||
font-family: monospace;
|
||||
color: $white-color;
|
||||
@ -487,8 +485,16 @@ em {
|
||||
}
|
||||
}
|
||||
|
||||
/*---------------------------------PAGE--------------------------------*/
|
||||
|
||||
.page_content {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
background: $white-color;
|
||||
}
|
||||
|
||||
textarea {
|
||||
white-space: pre;
|
||||
width: 98%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ register = template.Library()
|
||||
@register.filter(is_safe=False)
|
||||
@stringfilter
|
||||
def markdown(text):
|
||||
return mark_safe(md(text))
|
||||
return mark_safe("<div class=\"markdown\">%s</div>" % md(text))
|
||||
|
||||
@register.filter()
|
||||
@stringfilter
|
||||
@ -57,4 +57,4 @@ def scss(path):
|
||||
Return path of the corresponding css file after compilation
|
||||
"""
|
||||
processor = ScssProcessor(path)
|
||||
return processor.get_converted_scss()
|
||||
return processor.get_converted_scss()
|
||||
|
Reference in New Issue
Block a user