bookish-press 0.4.32 → 0.4.33
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.
|
@@ -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
|
-
|
|
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
|
-
|
|
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>
|
package/models/book/Theme.js
CHANGED
|
@@ -382,7 +382,7 @@ export const SketchyTheme = {
|
|
|
382
382
|
// Spacing
|
|
383
383
|
spacing: {
|
|
384
384
|
paragraphLineHeight: '2.4em',
|
|
385
|
-
paragraphLineHeightTight: '1.
|
|
385
|
+
paragraphLineHeightTight: '1.8em',
|
|
386
386
|
headerLineHeight: '1.3em',
|
|
387
387
|
paragraphSpacing: '1.8rem',
|
|
388
388
|
headerSpacing: '2rem',
|