Skip to content

Commit

Permalink
fix(epub): compatible with reader tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Mar 26, 2023
1 parent a6ad54d commit aa99e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions packages/better-write-plugin-exporter-epub/src/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export const PluginEpubSet = (
}

const svg = (entity: Entity) => {
console.log(entity.raw)

return `<div>${entity.raw}</div>`
}

Expand Down Expand Up @@ -79,11 +77,11 @@ export const PluginEpubSet = (
}

const pageBreak = () => {
return `<span style="page-break-after: always;"></span>`
return `<div style="page-break-after: always;"></div>`
}

const lineBreak = () => {
return '<span style="width: 100%;height:16px;border: none;"></span>'
return '<div style="width: 100%;height:16px;border: none;"></div>'
}

return {
Expand Down
6 changes: 1 addition & 5 deletions packages/better-write-plugin-exporter-epub/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@ 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 {
text-align: center;
}
h1 {
padding: 3.5rem 0;
padding: 5rem 0 3.5rem 0;
}
h2 {
Expand Down

0 comments on commit aa99e50

Please sign in to comment.