bobmk2 / quihex Goto Github PK
View Code? Open in Web Editor NEWConvert quiver notes for hexo and sync them
Convert quiver notes for hexo and sync them
The code below shows different in quiver-util.js
between Github and NPM, it caused quihex won't parse code block in quiver.
// code in npm `quiver-util.js`
obj.content = noteObj.content.cells
.filter((cell) => {
return cell.type === 'markdown';
})
.map((cell) => {
return cell.data;
})
.join('\n\n');
// code in github `quiver-util.js`
obj.content = noteObj.content.cells
.map((cell) => {
if (cell.type === 'markdown') {
return cell.data;
} else if (cell.type === 'code') {
return `\`\`\`${cell.language}\n${cell.data}\n\`\`\``;
}
})
.join('\n\n');
In my option,Quiver is some place to write note,it mean maybe there will have something trifling.But in blog,i will write something serious.So maybe 2 or 3 note will generate one blog article.It will be better,if just need to add a tag for post a article.
I like this tool,but run npm install -g quihex
fail.
log:
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/5.8.0/bin/node" "/usr/local/bin/npm" "install" "-g" "quihex"
npm ERR! node v5.8.0
npm ERR! npm v3.7.3
npm ERR! path /usr/local/lib/node_modules/quihex/build/index.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/quihex/build/index.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/quihex/build/index.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/bai/workplace/hexo_blog/npm-debug.log
Test at here also fail.
i need category and permalink
I create a new post use hexo new "name"
and hexo generate a file like 2016-04-09-name.md
.How to you solve this problem,because i find hexo use the time of title to order article.
The code cell is not export to md
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.