File tree Expand file tree Collapse file tree 5 files changed +54
-11
lines changed Expand file tree Collapse file tree 5 files changed +54
-11
lines changed Original file line number Diff line number Diff line change 2828
2929/* code highlighting */
3030@import "codehilite.css" ;
31+
32+ /* oddk */
33+ @import "oddk" ;
Original file line number Diff line number Diff line change 1+ .markdown-content {
2+ & h1 {
3+ @apply text-3xl font-semibold text-gray-900;
4+ }
5+ & h2 {
6+ @apply text-2xl font-semibold text-gray-900;
7+ }
8+
9+ & h3 {
10+ @apply text-xl font-semibold text-gray-900;
11+ }
12+
13+ & h4 {
14+ @apply text-lg font-semibold text-gray-900;
15+ }
16+ & p {
17+ @apply text-lg mb-2;
18+ }
19+ & strong {
20+ font-weight : 600 ;
21+ }
22+ & ol {
23+ @apply mt-1 ml-5 list-decimal;
24+ }
25+ & ul {
26+ @apply mt-1 ml-5 list-disc;
27+ }
28+ & code {
29+ font-family : "Nunito Sans" , sans-serif;
30+ @apply font-semibold text-gray-900 text-base;
31+ }
32+ & a {
33+ @apply underline text-gray-900;
34+ }
35+ & em {
36+ font-style : italic;
37+ }
38+ }
Original file line number Diff line number Diff line change 1818 {{ package .readmeHtml |safe }}
1919 </p >
2020 {% elif package .description %}
21- <p >
22- {% if package .description |length > 200 %}
23- {{ package .notes_translated [locale ]|truncate (200) or package .description |truncate (200) }}
24- {% else %}
25- {{ package .notes_translated [locale ] or package .description }}
26- {% endif %}
27- </p >
21+ <div class =" markdown-content leading-relaxed" >
22+ <p class =" block" >
23+ {% if package .description |length > 200 %}
24+ {{ package .notes_translated [locale ]|truncate (200) | processMarkdown | safe or package .description |truncate (200) | processMarkdown | safe }}
25+ {% else %}
26+ {{ package .notes_translated [locale ] | processMarkdown | safe or package .description | processMarkdown | safe }}
27+ {% endif %}
28+ </p >
29+ </div >
2830 {% endif %}
2931 </div >
3032 </div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ <h1 class="text-4xl font-semibold mb-3">
3838 {% if dataset.readmeHtml %}
3939 < div class ="leading-relaxed "> {{ dataset.readmeHtml | safe }}</ div >
4040 {% elif dataset.description %}
41- < div class ="leading-relaxed whitespace-pre-wrap "> {{ dataset.notes_translated[locale] or dataset.description | processMarkdown | safe }}</ div >
41+ < div class ="markdown-content leading-relaxed "> {{ dataset.notes_translated[locale] | processMarkdown | safe or dataset.description | processMarkdown | safe }}</ div >
4242 {% endif %}
4343 <!-- end of full readme -->
4444
@@ -79,9 +79,9 @@ <h3 class="text-xl font-semibold">
7979 class ="bg-gray-600 rounded text-sm text-gray-100 px-2 py-1 "> {{ resource.size }}</ span >
8080 {% endif %}
8181 </ div >
82- < p class ="mt-2 ">
82+ < div class ="markdown-content mt-2 ">
8383 {{ resource.descriptionHtml | safe }}
84- </ p >
84+ </ div >
8585 < nav aria-label ="{{__('Download')}} {{__('or')}} {{__('Preview')}} {{resource.name}} {{ resource.format }} ">
8686 < a class ="data-file-type mr-1 " href ="{{ resource.path }} " aria-label ="{{__('Download')}} {{ resource.name }}.{{ resource.format }} ">
8787 < dl class ="data-file-type_inner ">
You can’t perform that action at this time.
0 commit comments