bookish-press 0.4.32 → 0.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ $: showPlaceholder =
48
48
  {#each node.getSegments() as segment (segment.nodeID)}
49
49
  {#if segment instanceof TextNode}<Text
50
50
  node={segment}
51
- placeholder={node.getSegments().length === 1
51
+ placeholder={showPlaceholder && node.getSegments().length === 1
52
52
  ? placeholder
53
53
  : undefined}
54
54
  />
@@ -35,17 +35,18 @@ function isInvalidChapterLink() {
35
35
  <a href={url} target="_blank" rel="noreferrer"><Text node={content} /></a>
36
36
  <!-- If's a chapter link with a label -->
37
37
  {:else if url.indexOf(':') >= 0}
38
- <!-- If the chapter isn't specified, set to the current chapter's id. -->
39
38
  {#if url.split(':')[0] === ''}
39
+ <!-- If the chapter isn't specified, assume this chapter. -->
40
40
  <a href={'#' + url.split(':')[1]}><Text node={content} /></a>
41
41
  {:else}
42
- <a href={'/' + url.split(':')[0] + '#' + url.split(':')[1]}
42
+ <!-- If it is specified, include the base relative chapter ID and the label -->
43
+ <a href={`${$base}${url.split(':')[0]}#${url.split(':')[1]}`}
43
44
  ><Text node={content} /></a
44
45
  >
45
46
  {/if}
46
- <!-- If this is internal link, make a route link to the chapter. -->
47
47
  {:else}
48
- <a href={`${base}${url}`}><Text node={content} /></a>
48
+ <!-- If this is internal link, make a route link to the chapter. -->
49
+ <a href={`${$base}${url}`}><Text node={content} /></a>
49
50
  {/if}
50
51
 
51
52
  <style>
@@ -146,7 +146,7 @@ let darkLabel = '\u263E';
146
146
  >{previousLabel}</span
147
147
  >{/if}
148
148
  &nbsp;&middot;&nbsp;
149
- <Link to={$base}>Home</Link>
149
+ <Link to="{$base}/">Home</Link>
150
150
  &nbsp;&middot;&nbsp;
151
151
  {#if next !== null}<Link to={$base + next}>{nextLabel}</Link
152
152
  >{:else}<span class="outline-header-nav-disabled"
@@ -382,7 +382,7 @@ export const SketchyTheme = {
382
382
  // Spacing
383
383
  spacing: {
384
384
  paragraphLineHeight: '2.4em',
385
- paragraphLineHeightTight: '1.4em',
385
+ paragraphLineHeightTight: '1.8em',
386
386
  headerLineHeight: '1.3em',
387
387
  paragraphSpacing: '1.8rem',
388
388
  headerSpacing: '2rem',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bookish-press",
3
3
  "private": false,
4
- "version": "0.4.32",
4
+ "version": "0.4.34",
5
5
  "type": "module",
6
6
  "description": "A platform for reading and writing readable, accessible, beautiful online books.",
7
7
  "license": "MIT",