Skip to content

Commit

Permalink
Fixes #558
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Nov 12, 2023
1 parent f3d72ca commit 95301a4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
21 changes: 21 additions & 0 deletions plugs/markdown/assets/markdown_widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ ul li::before {
/* Also needed for space (tweak if needed) */
}

h1,
h2,
h3,
h4,
h5 {
margin: 0;
}

a.wiki-link {
border-radius: 5px;
padding: 0 5px;
color: var(--editor-wiki-link-page-color);
background-color: var(--editor-wiki-link-page-background-color);
text-decoration: none;
}

span.task-deadline {
background-color: rgba(22, 22, 22, 0.07);
}



body:hover #button-bar,
body:active #button-bar {
Expand Down
9 changes: 8 additions & 1 deletion plugs/markdown/markdown_render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ function render(
name: "a",
attrs: {
href: `/${ref.replace("@", "#")}`,
class: "wiki-link",
"data-ref": ref,
},
body: linkText,
Expand Down Expand Up @@ -333,7 +334,13 @@ function render(
}

case "DeadlineDate":
return renderToText(t);
return {
name: "span",
attrs: {
class: "task-deadline",
},
body: renderToText(t),
};

// Tables
case "Table":
Expand Down

0 comments on commit 95301a4

Please sign in to comment.