From aa99e50a098f211ee4edd09346d8e6bf71939a19 Mon Sep 17 00:00:00 2001 From: Novout Date: Sun, 26 Mar 2023 19:58:38 -0300 Subject: [PATCH] fix(epub): compatible with reader tools --- packages/better-write-plugin-exporter-epub/src/set.ts | 6 ++---- packages/better-write-plugin-exporter-epub/src/styles.ts | 6 +----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/better-write-plugin-exporter-epub/src/set.ts b/packages/better-write-plugin-exporter-epub/src/set.ts index d5f889c6b..78815b9a3 100644 --- a/packages/better-write-plugin-exporter-epub/src/set.ts +++ b/packages/better-write-plugin-exporter-epub/src/set.ts @@ -28,8 +28,6 @@ export const PluginEpubSet = ( } const svg = (entity: Entity) => { - console.log(entity.raw) - return `
${entity.raw}
` } @@ -79,11 +77,11 @@ export const PluginEpubSet = ( } const pageBreak = () => { - return `` + return `
` } const lineBreak = () => { - return '' + return '
' } return { diff --git a/packages/better-write-plugin-exporter-epub/src/styles.ts b/packages/better-write-plugin-exporter-epub/src/styles.ts index 88c3f286e..bc5e58b50 100644 --- a/packages/better-write-plugin-exporter-epub/src/styles.ts +++ b/packages/better-write-plugin-exporter-epub/src/styles.ts @@ -9,18 +9,14 @@ export const getStyles = ( outline: 0; font-feature-settings: 'ss02' on, 'ss01' on; -webkit-font-smoothing: antialiased; - color: black; } p { - font-size: 18px; text-indent: 1.75rem; - color: black; } p > a { text-decoration: none; - color: black !important; } h1, h2, h3 { @@ -28,7 +24,7 @@ h1, h2, h3 { } h1 { - padding: 3.5rem 0; + padding: 5rem 0 3.5rem 0; } h2 {