gamell / markpress Goto Github PK
View Code? Open in Web Editor NEWA command line tool and node package to convert markdown files into self-contained impressjs html presentations
Home Page: https://gamell.github.io/markpress
License: MIT License
A command line tool and node package to convert markdown files into self-contained impressjs html presentations
Home Page: https://gamell.github.io/markpress
License: MIT License
-sa --sanitize
(destructive behavior combined with save), -t, --theme
, --silent
Add the ability to add styles directly at the top of the presentation if people want to.
Create a print.css
to allow users to successfully print the slides / create PDFs. Thanks @vchanExpedia for suggesting it!
Set opacity to 0.1
for future/past slides by default
npm v5.3.0
nodejs v8.2.1
electron v1.7.5
Hello, I was having some problems with your package and after solving some of them I still cannot use the package.
First on require('markpress') the system told me there is some version mismatch with onigurama package (it is indirect dependency of markpress). I have solved it using .npmrc file where I forced onigurama to install for specific electron version.
But it is not the main problem I am facing now. This is my code (data is any of your example md)
const options = {
layout: 'horizontal',
theme: 'light',
autoSplit: true,
allowHtml: false,
verbose: false,
title: 'Optional title for output HTML'
};
markpress(data, options).then(({html,md}) => {
console.log(html);
});
}
Unfortunately I get this in console:
Uncaught (in promise) TypeError: timer.unref is not a function
at gcTimer (/home/gnaag/Programy/turban-player/node_modules/property-ttl/index.js:44:11)
at Grammar.get [as initialRule] (/home/gnaag/Programy/turban-player/node_modules/property-ttl/index.js:15:7)
at Grammar.module.exports.Grammar.getInitialRule (/home/gnaag/Programy/turban-player/node_modules/first-mate/lib/grammar.js:256:18)
at Grammar.module.exports.Grammar.tokenizeLine (/home/gnaag/Programy/turban-player/node_modules/first-mate/lib/grammar.js:119:28)
at Grammar.module.exports.Grammar.tokenizeLines (/home/gnaag/Programy/turban-player/node_modules/first-mate/lib/grammar.js:79:21)
at Highlights.module.exports.Highlights._highlightCommon (/home/gnaag/Programy/turban-player/node_modules/highlights/lib/highlights.js:187:28)
at Highlights.module.exports.Highlights.highlightSync (/home/gnaag/Programy/turban-player/node_modules/highlights/lib/highlights.js:41:19)
at Object.mdOptions.highlight (/home/gnaag/Programy/turban-player/node_modules/marky-markdown/lib/render.js:49:26)
at default_rules.fence (/home/gnaag/Programy/turban-player/node_modules/markdown-it/lib/renderer.js:50:27)
at md.renderer.rules.fence (/home/gnaag/Programy/turban-player/node_modules/markdown-it-expand-tabs/index.js:16:25)
at Object.md.renderer.rules.fence (/home/gnaag/Programy/turban-player/node_modules/marky-markdown/lib/code-wrap.js:8:18)
at Renderer.render (/home/gnaag/Programy/turban-player/node_modules/markdown-it/lib/renderer.js:326:38)
at MarkdownIt.render (/home/gnaag/Programy/turban-player/node_modules/markdown-it/lib/index.js:539:24)
at module.exports (/home/gnaag/Programy/turban-player/node_modules/marky-markdown/lib/render.js:66:32)
at module.exports (/home/gnaag/Programy/turban-player/node_modules/marky-markdown/index.js:39:10)
at createSlideHtml (/home/gnaag/Programy/turban-player/node_modules/markpress/index.js:77:5)
at prev.then.h0 (/home/gnaag/Programy/turban-player/node_modules/markpress/index.js:172:13)
at :null:null
Inside markdown files, as html comments:
<!-- ... -->
As JSON in .mkpressrc
Use -m --minify
flag
Use https://www.npmjs.com/package/gulp-gh-pages
Include Badges & buttons:
Block of code:
<style>
#badges a{
padding: 0;
}
</style>
<div id="badges">
<a href="https://www.npmjs.com/package/markpress"><img src="https://img.shields.io/npm/dt/markpress.svg" alt="NPM downloads" /></a>
<a class="github-button" href="https://github.com/gamell/markpress" data-icon="octicon-star" data-style="mega" data-count-href="/gamell/markpress/stargazers" data-count-api="/repos/gamell/markpress#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star gamell/markpress on GitHub">Star</a>
</div>
Hi, this is a great tool. Would be nice to have an option for setup a development server with auto-reloading.
Waiting for less
and oniguruma
libs to update.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.