diff --git a/pkg/interface/publish/src/css/custom.css b/pkg/interface/publish/src/css/custom.css index 06e7ae1c47..59e0dc780a 100644 --- a/pkg/interface/publish/src/css/custom.css +++ b/pkg/interface/publish/src/css/custom.css @@ -176,3 +176,38 @@ a { .no-scrollbar::-webkit-scrollbar { display: none; } + +.md h1, .md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul, .md blockquote,.md code,.md pre { + font-size: 14px; + margin-bottom: 16px; +} + +.md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul { + font-weight: 400; +} + +.md h1 { + font-weight: 600; +} + +.md h2, .md h3, .md h4, .md h5 { + color:var(--gray); +} + +.md p { + line-height: 1.5; +} +.md code, .md pre { + font-family: "Source Code Pro", mono; +} +.md ul>li { + line-height: 1.5; +} +.md a { + border-bottom-style: solid; + border-bottom-width: 1px; +} + +md img { + margin-bottom: 8px; +} diff --git a/pkg/interface/publish/src/js/components/lib/comments.js b/pkg/interface/publish/src/js/components/lib/comments.js index fbf81bad56..14fc1370c4 100644 --- a/pkg/interface/publish/src/js/components/lib/comments.js +++ b/pkg/interface/publish/src/js/components/lib/comments.js @@ -45,7 +45,7 @@ export class Comments extends Component { - diff --git a/pkg/interface/publish/src/js/components/lib/note-navigation.js b/pkg/interface/publish/src/js/components/lib/note-navigation.js index a0d87382ec..f6dfc12e9e 100644 --- a/pkg/interface/publish/src/js/components/lib/note-navigation.js +++ b/pkg/interface/publish/src/js/components/lib/note-navigation.js @@ -51,7 +51,7 @@ export class NoteNavigation extends Component { } return ( -
+
{prevComponent} {nextComponent}
diff --git a/pkg/interface/publish/src/js/components/lib/note.js b/pkg/interface/publish/src/js/components/lib/note.js index 1bd2cdddae..59e19b6233 100644 --- a/pkg/interface/publish/src/js/components/lib/note.js +++ b/pkg/interface/publish/src/js/components/lib/note.js @@ -2,8 +2,7 @@ import React, { Component } from 'react'; import { Comments } from './comments'; import { NoteNavigation } from './note-navigation'; import moment from 'moment'; -import ReactMarkdown from 'react-markdown' -// import test from 'test.json'; +import ReactMarkdown from 'react-markdown'; //TODO ask for note if we don't have it //TODO initialise note if no state @@ -129,13 +128,14 @@ export class Note extends Component {
{title}
-
-
{author}
-
{date}
+
+
{author}
+
{date}
- - +
+ +