Skip to content

Commit 8c2d278

Browse files
Enable doc tables and fix frontmatter bug
1 parent 7050836 commit 8c2d278

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

packages/core/src/lib/markdown_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const markdown_parser = function() {
1515
try {
1616
// for each block process the yaml frontmatter and markdown
1717
// even if the pattern only has pattern data without further documentation
18-
const frontmatterRE = /---\r?\n{1}([\s\S]*)---([\s\S]*)+/gm;
18+
const frontmatterRE = /---\r?\n{1}([\s\S]*)^---([\s\S]*)+/gm;
1919
const chunks = frontmatterRE.exec(block);
2020

2121
if (chunks) {

packages/uikit-workshop/src/sass/scss/04-components/_text-passage.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,29 @@
136136
li {
137137
margin-bottom: 0.5rem;
138138
}
139+
140+
table {
141+
width: 100%;
142+
max-width: 100%;
143+
border-collapse: collapse;
144+
overflow-x: auto;
145+
margin: 0.75rem auto;
146+
}
147+
148+
tr:nth-of-type(odd) {
149+
background: $pl-color-gray-07;
150+
}
151+
152+
th {
153+
background: $pl-color-gray-13;
154+
color: black;
155+
font-weight: bold;
156+
}
157+
158+
td,
159+
th {
160+
padding: 10px;
161+
border: 1px solid $pl-color-gray-20;
162+
text-align: left;
163+
}
139164
}

0 commit comments

Comments
 (0)