add list-style:none for ul.indents in exported HTML (#4586)

* add list-style:none for ul.indents in exported HTML

* use list-style-type not list-style
This commit is contained in:
webzwo0i 2020-12-20 07:00:18 +01:00 committed by GitHub
parent b82bf5c726
commit a637920e55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -31,6 +31,11 @@ ol ol > li:before {
content: counters(item, ".") ". "; content: counters(item, ".") ". ";
margin-left: -20px; margin-left: -20px;
} }
ul.indent {
list-style-type: none;
}
<%- extraCSS %> <%- extraCSS %>
</style> </style>
</head> </head>

View file

@ -62,6 +62,12 @@ const testImports = {
expectedHTML: '<!DOCTYPE HTML><html><body>empty<br><br></body></html>', expectedHTML: '<!DOCTYPE HTML><html><body>empty<br><br></body></html>',
expectedText: 'empty\n\n', expectedText: 'empty\n\n',
}, },
'indentedListsAreNotBullets': {
description: 'Indented lists are represented with tabs and without bullets',
input: '<html><body><ul class="indent"><li>indent</li><li>indent</ul></body></html>',
expectedHTML: '<!DOCTYPE HTML><html><body><ul class="indent"><li>indent</li><li>indent</ul><br></body></html>',
expectedText: '\tindent\n\tindent\n\n'
}
}; };
describe(__filename, function () { describe(__filename, function () {