Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pubsweet-components
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
There was a problem fetching the pipeline stages.
Show more breadcrumbs
pubsweet
pubsweet-components
Commits
84df14d9
Commit
84df14d9
authored
7 years ago
by
Alexandros Georgantas
Browse files
Options
Downloads
Patches
Plain Diff
Correction pon fragment mock
parent
2a90dbb5
No related branches found
No related tags found
1 merge request
!103
Vivliostyle converter
Pipeline
#3048
passed with stage
in 10 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/Epub/converters/wax.js
+2
-2
2 additions, 2 deletions
packages/Epub/converters/wax.js
packages/Epub/process.test.js
+1
-0
1 addition, 0 deletions
packages/Epub/process.test.js
with
3 additions
and
2 deletions
packages/Epub/converters/wax.js
+
2
−
2
View file @
84df14d9
module
.
exports
=
(
$
,
fragmentTitle
,
bookTitle
,
fragmentDivision
)
=>
{
module
.
exports
=
(
$
,
fragmentTitle
,
bookTitle
,
fragmentDivision
)
=>
{
const
body
=
$
(
'
body
'
)
const
body
=
$
(
'
body
'
)
cons
t
outerContainer
=
$
(
'
<div/>
'
).
attr
(
'
class
'
,
fragmentDivision
)
le
t
outerContainer
=
$
(
'
<div/>
'
).
attr
(
'
class
'
,
fragmentDivision
)
cons
t
innerContainer
=
$
(
'
<section/>
'
).
attr
(
'
data-type
'
,
'
chapter
'
)
le
t
innerContainer
=
$
(
'
<section/>
'
).
attr
(
'
data-type
'
,
'
chapter
'
)
$
(
'
<p/>
'
).
attr
(
'
class
'
,
'
ch-start
'
).
html
(
'
beginning
'
).
appendTo
(
innerContainer
)
$
(
'
<p/>
'
).
attr
(
'
class
'
,
'
ch-start
'
).
html
(
'
beginning
'
).
appendTo
(
innerContainer
)
$
(
'
<div/>
'
).
attr
(
'
class
'
,
'
folio
'
).
appendTo
(
innerContainer
)
$
(
'
<div/>
'
).
attr
(
'
class
'
,
'
folio
'
).
appendTo
(
innerContainer
)
$
(
'
<div/>
'
).
attr
(
'
class
'
,
'
booktitle
'
).
html
(
bookTitle
).
appendTo
(
innerContainer
)
$
(
'
<div/>
'
).
attr
(
'
class
'
,
'
booktitle
'
).
html
(
bookTitle
).
appendTo
(
innerContainer
)
...
...
This diff is collapsed.
Click to expand it.
packages/Epub/process.test.js
+
1
−
0
View file @
84df14d9
...
@@ -5,6 +5,7 @@ const processFragment = require('./process')
...
@@ -5,6 +5,7 @@ const processFragment = require('./process')
test
(
'
converts source to html
'
,
()
=>
{
test
(
'
converts source to html
'
,
()
=>
{
const
fragment
=
{
const
fragment
=
{
title
:
'
A Test
'
,
title
:
'
A Test
'
,
division
:
'
body
'
,
source
:
`
source
:
`
<div>
<div>
<h1>A Test</h1>
<h1>A Test</h1>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment