Skip to content
Snippets Groups Projects
Commit 666deeb6 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'ink-recipe' into 'master'

Explicitly use "editoria-typescript" recipe for manuscript conversion

See merge request xpub!80
parents 09bc6314 beef4c1a
No related branches found
No related tags found
No related merge requests found
import { actions } from 'pubsweet-client'
import { ink as convertToHTML } from 'pubsweet-component-ink-frontend/actions'
import { ink } from 'pubsweet-component-ink-frontend/actions'
import uploadFile from 'xpub-upload'
import { generateTitle, extractTitle } from '../lib/title'
......@@ -44,7 +44,7 @@ export const uploadManuscript = (acceptedFiles, history) => dispatch => {
const fileURL = request.responseText
dispatch(convertToHTML(inputFile, {}))
dispatch(ink(inputFile, { recipe: 'editoria-typescript' }))
.then(response => {
if (!response.converted) {
throw new Error('The file was not converted')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment