mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 14:48:02 -05:00
markdown editor fixes
This commit is contained in:
@@ -6,8 +6,10 @@ class StyleTreeprocessor(Treeprocessor):
|
|||||||
|
|
||||||
def run_processor(self, node):
|
def run_processor(self, node):
|
||||||
for child in node:
|
for child in node:
|
||||||
# if child.tag == "table":
|
if child.tag == "table":
|
||||||
# child.set("class", "markdown-body")
|
child.set("class", "markdown-table")
|
||||||
|
if child.tag == "th" or child.tag == "td":
|
||||||
|
child.set("class", "markdown-table-cell")
|
||||||
if child.tag == "img":
|
if child.tag == "img":
|
||||||
child.set("class", "img-fluid")
|
child.set("class", "img-fluid")
|
||||||
self.run_processor(child)
|
self.run_processor(child)
|
||||||
|
|||||||
@@ -52,4 +52,38 @@ p, ol, ul, li {
|
|||||||
margin: revert;
|
margin: revert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* css classes needed to render markdown blockquotes */
|
||||||
|
blockquote {
|
||||||
|
background: rgb(200,200,200,0.2);
|
||||||
|
border-left: 4px solid #ccc;
|
||||||
|
margin: 1.5em 10px;
|
||||||
|
padding: .5em 10px;
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote:before {
|
||||||
|
color: #ccc;
|
||||||
|
content: open-quote;
|
||||||
|
font-size: 4em;
|
||||||
|
line-height: .1em;
|
||||||
|
margin-right: .25em;
|
||||||
|
vertical-align: -.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.markdown-table {
|
||||||
|
border: 1px solid;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.markdown-table-cell {
|
||||||
|
border: 1px solid;
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user