fix: tables in markdown editor (#25935)

This commit is contained in:
Saqib Ansari 2024-04-12 15:46:57 +05:30 committed by GitHub
parent ea61af2ceb
commit e7cb2c04bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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") {

View file

@ -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,