fix: tables in markdown editor (#25935)
This commit is contained in:
parent
ea61af2ceb
commit
e7cb2c04bc
2 changed files with 12 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ frappe.tools.downloadify = function (data, roles, title) {
|
|||
|
||||
frappe.markdown = function (txt) {
|
||||
if (!frappe.md2html) {
|
||||
frappe.md2html = new showdown.Converter();
|
||||
frappe.md2html = new showdown.Converter({ tables: true });
|
||||
}
|
||||
|
||||
while (txt.substr(0, 1) === "\n") {
|
||||
|
|
|
|||
|
|
@ -381,6 +381,17 @@ textarea.form-control {
|
|||
min-height: 300px;
|
||||
max-height: 600px;
|
||||
overflow: auto;
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
th,
|
||||
td {
|
||||
border: 1px solid var(--border-color);
|
||||
padding: var(--padding-sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.markdown-toggle,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue