mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
no issue - Node v6 has come to EOL as of 2019-04-30 (ref. https://github.com/nodejs/Release#end-of-life-releases) - Removed Node v6 specific tests and code
27 lines
878 B
JavaScript
27 lines
878 B
JavaScript
const common = require('../../common');
|
|
|
|
module.exports = {
|
|
get mobiledocConverter() {
|
|
return require('./mobiledoc-converter');
|
|
},
|
|
|
|
get markdownConverter() {
|
|
return require('./markdown-converter');
|
|
},
|
|
|
|
get htmlToMobiledocConverter() {
|
|
try {
|
|
return require('@tryghost/html-to-mobiledoc').toMobiledoc;
|
|
} catch (err) {
|
|
return () => {
|
|
throw new common.errors.InternalServerError({
|
|
message: 'Unable to convert from source HTML to Mobiledoc',
|
|
context: 'The html-to-mobiledoc package was not installed',
|
|
help: 'Please review any errors from the install process by checking the Ghost logs',
|
|
code: 'HTML_TO_MOBILEDOC_INSTALLATION',
|
|
err: err
|
|
});
|
|
};
|
|
}
|
|
}
|
|
};
|