Skip to content

Enable doc tables and fix frontmatter bug #1244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 26, 2020
Merged
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
2 changes: 1 addition & 1 deletion packages/core/src/lib/markdown_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const markdown_parser = function() {
try {
// for each block process the yaml frontmatter and markdown
// even if the pattern only has pattern data without further documentation
const frontmatterRE = /---\r?\n{1}([\s\S]*)---([\s\S]*)+/gm;
const frontmatterRE = /---\r?\n{1}([\s\S]*)^---([\s\S]*)+/gm;
const chunks = frontmatterRE.exec(block);

if (chunks) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,29 @@
li {
margin-bottom: 0.5rem;
}

table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
overflow-x: auto;
margin: 0.75rem auto;
}

tr:nth-of-type(odd) {
background: $pl-color-gray-07;
}

th {
background: $pl-color-gray-13;
color: black;
font-weight: bold;
}

td,
th {
padding: 10px;
border: 1px solid $pl-color-gray-20;
text-align: left;
}
}