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:
Skia
2017-06-10 16:52:03 +02:00
parent 1bcde80a28
commit 457fc36e16
6 changed files with 166 additions and 141 deletions

View File

@ -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;
}

View File

@ -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()