Skip to content

Commit e7e6629

Browse files
authored
fix: rendering of list items in markdown (#146)
1 parent b1cd9a0 commit e7e6629

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

partials/servers.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 class="mb-4">Servers</h2>
4949

5050
{% if server.security() %}
5151
<h5 class="text-sm text-gray-500 mt-1">Security:</h5>
52-
<ul class="list-reset">
52+
<ul>
5353
{% for sec in server.security() %}
5454
<li>
5555
{% set def = asyncapi.components().securityScheme(sec.json() | keys | head) %}
@@ -111,7 +111,7 @@ <h5 class="text-sm text-gray-500 mt-1">Security:</h5>
111111
{% endif %}
112112

113113
{% if def.openIdConnectUrl() %}
114-
<div class="px-4 py-2 ml-4 mb-3 border border-gray-400 bg-gray-200 rounded">
114+
<div class="px-4 py-2 ml-4 mb-3 border border-gray-400 bg-gray-100 rounded">
115115
<div>
116116
<span class="text-xs font-bold text-gray-600 mt-1 mr-1 uppercase">Connect URL:</span>
117117
<a class="text-gray-600 text-xs font-normal" href="{{def.openIdConnectUrl()}}"
@@ -122,7 +122,7 @@ <h5 class="text-sm text-gray-500 mt-1">Security:</h5>
122122
{% endif %}
123123

124124
{% for flowName, flow in def.flows() %}
125-
<div class="px-4 py-2 ml-4 mb-3 border border-gray-400 bg-gray-200 rounded">
125+
<div class="px-4 py-2 ml-4 mb-3 border border-gray-400 bg-gray-100 rounded">
126126
<div>
127127
<span class="text-xs font-bold text-gray-600 mt-1 mr-1 uppercase">Flow:</span>
128128
<span class="text-gray-600 text-xs font-normal capitalize">

partials/sidebar.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1 class="text-2xl font-thin">
1818
{{ asyncapi.info().title() }} {{ asyncapi.info().version() }}
1919
</h1>
2020
{% endif %}
21-
<ul class="text-sm mt-10 list-reset mt-2">
21+
<ul class="text-sm mt-10 mt-2">
2222
<li class="mb-3">
2323
<a class="js-menu-item text-gray-700 no-underline" href="#introduction">Introduction</a>
2424
</li>
@@ -31,7 +31,7 @@ <h1 class="text-2xl font-thin">
3131

3232
{% if asyncapi.hasChannels() %}
3333
<h2 class="text-xs uppercase text-gray-500 mt-10 mb-4 font-thin">Operations</h2>
34-
<ul class="text-sm list-reset mt-2">
34+
<ul class="text-sm mt-2">
3535
<!-- With tags in sidebar -->
3636
{% if params.sidebarOrganization === 'byTags' %}
3737
{% include "./operations/by_tags.html" %}
@@ -81,7 +81,7 @@ <h2 class="text-xs uppercase text-gray-500 mt-10 mb-4 font-thin">Operations</h2>
8181
</ul>
8282

8383
<h2 class="text-xs uppercase text-gray-500 mt-10 mb-4 font-thin">Messages</h2>
84-
<ul class="text-sm list-reset mt-2">
84+
<ul class="text-sm mt-2">
8585
{% for key, value in asyncapi.allMessages() %}
8686
<a class="js-menu-item flex break-words no-underline text-gray-700 mt-8 sm:mt-8 md:mt-3" href="#message-{{ key }}">
8787
<div style="display:inline-block;">

template/css/main.css

+5
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ a:hover {
9191
text-transform: uppercase;
9292
}
9393

94+
.markdown :is(ol, ul) {
95+
padding-inline-start: 40px;
96+
list-style-type: disc;
97+
}
98+
9499
.expand {
95100
width: 20px;
96101
margin-bottom: -4px;

0 commit comments

Comments
 (0)