Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/assets/stylesheets/scaffolds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ li.bullet-list-item {
text-indent: -2.4em;
}

li.ul_list_item {
margin-left: 0px;
text-indent: 0em;
}

.bullet-list-marker {
font-family: monospace !important;
font-weight: normal;
Expand Down Expand Up @@ -134,4 +139,4 @@ div {

.marked {
background-color: #fff44f !important;
}
}
6 changes: 5 additions & 1 deletion lib/markdown_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,11 @@ def make_xref(el)
# </ul>
#
def convert_li(el, indent)
output = ' '*indent << "<#{el.type}" << html_attributes(el.attr) << ">"
if el.value
output = ' '*indent << "<#{el.type}" << html_attributes(el.attr) << ">"
elsif
output = ' '*indent << "<#{el.type}" << " class=\"ul_list_item\"" << html_attributes(el.attr) << ">"
end

if el.value.respond_to?(:mark)
output << "<span class=\"bullet-list-marker\">(#{el.value.mark})</span>"
Expand Down