From 5a27356b1bcf723fb5def026388906113a8f7780 Mon Sep 17 00:00:00 2001 From: Jason Fairchild Date: Mon, 29 Jul 2024 09:57:34 +1000 Subject: [PATCH] feat(#81): minor fixes from review feedback --- src/parser/parser.ts | 4 ++-- static/style.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 3160ddbb..3fadbee3 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -13,8 +13,8 @@ const pathHeading: Renderer = (path: string) => `# \`${path.replace(homedir(), ' function wrap(contentType: string, content: string, linkPath?: string): string { let link = ''; - if (typeof linkPath !== 'undefined') { - link = `\n
\n◂ ${ + if (linkPath) { + link = `\n`; } diff --git a/static/style.css b/static/style.css index 32093baa..c36e34bf 100644 --- a/static/style.css +++ b/static/style.css @@ -61,6 +61,7 @@ h3:hover a.header-anchor, h4:hover a.header-anchor, h5:hover a.header-anchor, h6:hover a.header-anchor { opacity: 1; } +a#top-nav-up:before { content: '◂'} /* -------------------------------------------------------------------------- * TABLES ------------------------------------------------------------------- */