This repository was archived by the owner on Aug 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 31
31
32
32
< script src ="/dist/elm.js "> </ script >
33
33
< script > Elm . Main . init ( ) </ script >
34
+
35
+ < style >
36
+ .markdown {
37
+ font-family : Verdana, Geneva, sans-serif;
38
+ font-size : 18px ;
39
+ line-height : 1.3 ;
40
+ white-space : normal;
41
+ }
42
+ .markdown pre {
43
+ width : 100% ;
44
+ white-space : pre-wrap;
45
+ }
46
+ .markdown code , .markdown pre {
47
+ font-family : "JetBrains Mono" , monospace;
48
+ font-size : 16px ;
49
+ background : # e6e3e3 ;
50
+ padding : 1rem ;
51
+ }
52
+ .markdown pre > code {
53
+ background : none;
54
+ padding : 0 ;
55
+ }
56
+ .markdown p + p , .markdown table + p {
57
+ margin-top : 1rem ;
58
+ }
59
+ .markdown p {
60
+ margin : 0 ;
61
+ }
62
+ .markdown p code {
63
+ padding : 0.25rem ;
64
+ }
65
+ .markdown table {
66
+ margin-top : 1rem ;
67
+ border-collapse : collapse;
68
+ width : calc (100% - 2rem - 2rem );
69
+ margin-left : 2rem ;
70
+ }
71
+ .markdown thead {
72
+ border-bottom : 1px solid gray;
73
+ }
74
+ .markdown td , th {
75
+ padding : 0.5rem ;
76
+ }
77
+ .markdown tr : nth-child (even) {
78
+ background : # f0f0f0 ;
79
+ }
80
+ .markdown th {
81
+ padding-top : 1rem ;
82
+ padding-bottom : 1rem ;
83
+ text-align : left;
84
+ }
85
+ .markdown table code {
86
+ background : 0 ;
87
+ padding : 0 ;
88
+ }
89
+ .markdown blockquote {
90
+ margin : 1rem ;
91
+ margin-left : 0.5rem ;
92
+ padding : 0.5rem ;
93
+ border-left : 3px solid # d2d2d2 ;
94
+ }
95
+ .markdown hr {
96
+ height : 2px ;
97
+ background : # b7b7b7 ;
98
+ border : 0 ;
99
+ width : 100% ;
100
+ }
101
+
102
+ </ style >
34
103
</ body >
35
104
</ html >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ render markdown =
27
27
|> Result . andThen ( \ ast -> Markdown . Renderer . render Markdown . Renderer . defaultHtmlRenderer ast)
28
28
of
29
29
Ok rendered ->
30
- E . column [ E . htmlAttribute ( Html . Attributes . style " white-space " " normal " ) ] ( List . map ( \ e -> E . html e) rendered)
30
+ E . column [ E . htmlAttribute ( Html . Attributes . class " markdown " ) ] ( List . map ( \ e -> E . html e) rendered)
31
31
32
32
Err errors ->
33
33
E . text errors
You can’t perform that action at this time.
0 commit comments