Giter Site home page Giter Site logo

hexo-renderer-org's Introduction

https://github.com/coldnew/hexo-renderer-org/raw/master/icon.png

Hexo renderer plugin for emacs org-mode.

https://circleci.com/gh/coldnew/hexo-renderer-org.svg?style=svg

Getting Started Guide

Table of Contents

Installation

Switch to your hexo blog directory and run:

npm install https://github.com/coldnew/hexo-renderer-org#master --save

Then restart your hexo server.

Options

You can configure this plugin in _config.yml according to the backend you want to use.

For highlight.js user

If highlight.js is enough for you, here’s the minimal config:

org:
  emacs: 'emacs'
  emacsclient: 'emacsclient'

For htmlize user

If you want to use emacs’s htmlize to syntax highlight your code block, you can use this config instead:

org:
  emacs: 'emacs'
  emacsclient: 'emacsclient'
  htmlize: true       # <--- for htmlize user, this MUST set true
  theme: 'leuven'

Full options documentation

Some options may not uesed on above example, here’s the doc:

configdescriptiondefault value
emacsexecutable file of emacsemacs
emacsclientexecutable file of emacsclientemacsclient
commoncommon org content you’ll use#+OPTIONS: toc:nil num:nil\n#+BIND: org-html-postamble nil
cachedirwhere cache file located./hexo-org-cache/
clean_cacheset true to clean cache by ‘hexo clean’false
themeemacs’s theme you want to use
user_configextra emacs config you want to load
htmlizeuse emacs’s htmlize to syntax highlightfalse
line_numberEnable line-number globally on src-blockfalse
debugShow more debug messagefalse
daemonizeEnable/Disable use emacs servertrue

Create Post

Create source/_posts/foobar.org with followin content:

#+TITLE: Hello World
#+DATE: <2017-03-05 Sun 08:52>
#+LAYOUT: post
#+CATEGORIES: org-mode
#+TAGS: hexo, org-mode

Welcome to [[https://github.com/coldnew/hexo-renderer-org][coldnew/hexo-renderer-org]]!

#+HTML: <!-- more -->

You also can add some code block:

#+BEGIN_SRC js
  console.log("hi");
#+END_SRC

Front-matters

org-mode has it’s own way to describe the front-matter.

Front-matterorg-modevalue
layout#+LAYOUTpost/page
title#+TITLEstring
date#+DATE<2017-04-15 Sat 12:30>, use M-x org-time-stamp to insert
updated#+UPDATED<2017-04-15 Sat 12:30>, use M-x org-time-stamp to insert
comments#+COMMENTSyes/no
tags#+TAGStag1, tag2, tag3
categories#+CATEGORIESstring

To insert date in org-mode, the default keybinding is C-c ., you can also use C-u C-c . instead.

Tutorials

For more tutorials, please see:

Q & A

Which org-mode version do you use ?

This renderer ONLY support org-mode 9.x syntax, be careful there’s some conflict with org-mode 9.x and 8.x.

If you really want to use org-mode 8.x, here’s the guide.

How to add Read more button ?

Place #+HTML: <!-- more --> in where you would like to add a Read more.

How to install my emacs theme

If the emacs theme you want to use is not installed by default, you can setup the _config.yml

For example, if we want to use moe-theme for your code block, we need to edit _config.yml like this:

org:
  # skip ...
  theme: 'moe-dark'
  user_config: './emacs/init.el'

Then add following code to your ./emacs/init.el.

;; install moe-theme and use it
(package-install 'moe-theme)
(require 'moe-theme)

Can I clean cachedir when use hexo clean ?

If you want to make hexo clean work with hexo-renderer-org, you can setup your _config.yml.

org:
  # skip ...
  clean_cache: true

Note that the emacs-lisp cache in cachedir will be kept after hexo clean, you can manually remove it if you want to re-fetch all emacs-lisp plugin.

How can I add line-number on src-block ?

You can add following to your _config.yml to make line-number display on your src-block globally:

org:
  # Make src-block has line-number (this won't make effect on example-block)
  line_number: true

Or use org-mode’s standard method to add line-number manually:

#+BEGIN_SRC js -n
   console.log("This is line 1")
#+END_SRC

I don’t want to use emacs daemon

If you still want to use CodeFalling/hexo-renderer-org method, which start emacs process to render post instead of using emacs daemon, you can switch to emacs process by setting _config.xml

org:
  # disable use emacs server by set 'false'
  daemonize: false

Can I drag and drop image to org files ?

Yes, first you need to install org-download to your emacs.

Then add following to .dir-locals.el at the top of your hexo project:

((nil .
      ((eval .
             (progn

               ;; make drag-and-drop image save in the same name folder as org file
               ;; ex: `aa-bb-cc.org' then save image test.png to `aa-bb-cc/test.png'
               (defun my-org-download-method (link)
                 (let ((filename
                        (file-name-nondirectory
                         (car (url-path-and-query
                               (url-generic-parse-url link)))))
                       (dirname (file-name-sans-extension buffer-file-name) ))
                   ;; if directory not exist, create it
                   (unless (file-exists-p dirname)
                     (make-directory dirname))
                   ;; return the path to save the download files
                   (expand-file-name filename dirname)))

               ;; only modify `org-download-method' in this project
               (setq-local org-download-method 'my-org-download-method)

               )))))

hexo-renderer-org's People

Contributors

coldnew avatar cy20lin avatar dependabot[bot] avatar driftcrow avatar fngx avatar mephistommm avatar mpwang avatar xcodebuild avatar zhenghub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-renderer-org's Issues

cannot include space in CATEGORIES?

My posts sometimes include space in CATEGORIES, but when I generate files, the space will disappear in the site.
I do not know if it is a bug or the wrong way I am using.

org里面的中文使用hexo g生成的html文件全部变成&#x5F88;这种utf8编码了

如标题,除了title在生成的html里面是原装的中文,org的正文部分在 hexo g 生成的html文件里全部变成了类似 &#x5F88; 这种utf8编码了,直接使用 emacs export html 就不会。当然使用浏览器打开html文件的时候又自动转换为中文了,对于正常阅读没有什么大影响。
因为使用了 hexo-generator-search 插件作本地搜索, hexo-generator-search 生成的 search.xml 文件里面的中文情况和 hexo-renderer-org 生成html文件一样,这样在使用站内搜索的时候只能对标题进行中文搜索,正文里面的中文全部变成而 &#x5F88; 这种utf8编码了,搜索不了。 .md 就不会,中文就是中文。
所以我想是不是 hexo-generator-search 生成索引文件的时候会先用到 hexo-generator-search 解析,在解析的时候直接把中文转换为 &#x5F88; 了,我不懂nodejs,只是猜测,想让 @codefalling 闲暇时能给看看

系统:openSUSE42.2
系统语言:en_US (切换为zh_CN也不行)
org使用spacemacs编写,文件编码是utf-8[unix]

最后感谢 @codefalling 写了两个很好用的插件 hexo-renderer-orghexo-asset-image

Read More button 可能在新版的 org-mode 不起作用。

使用的版本如下:

nvm 6.2.0
hexo: 3.2.2
Emacs 25.1. (Org mode 9.0.5)

我在emacs里面直接用自动补全打出来的是下面的这种情况:

#+BEGIN_EXPORT html
<!--more-->
#+END_EXPORT

在hexo中可以正确解析。

然后我使用

#+BEGIN_HTML
<!--more-->
#+END_HTML

发现没有起作用。

Code highlight mess order between text and code block

Org is:

在 hexo 的 =_config.yml= 中可以配置
#+BEGIN_EXAMPLE
  org:
    toc: false
#+END_EXAMPLE

Output is:

<code>_config.yml</code>
<figure class="highlight"><table><tbody><tr><td class="code"><pre><span class="line">  org:
    toc: false</span><br></pre></td></tr></tbody></table></figure>
 中可以配置

关于 fix #38

我发现 #38 的问题后来 github看了一下,前几天已经修复,我升级了 hexo-renderer-org 模块,同时 < 不会解析为 &lt; 了,我这里 clean 了 ,解析为 <; 了,后面带了一个分号 ; 。不知道是不是我的个例。
我升级模块到最新版本后,有些还是有点问题。
我简单测试了一下,好像和代码块的源码类型有关,我简单测试了下org-mode支持的代码类型,生成不太正常的大概分为三种:

  • emacs-lisp lisp 解析为:(< 解析为了 <;)
<;Command>
  <;Order>1</Order>
<;/Command>
  • perl 解析为:(有点混乱)
&lt;Command&gt;
  &lt;Order&gt;1&lt;/Order>
</Command&gt;
  • asymptote dot gnuplot latex mscgen octave oz plantuml sed awk ditaa calc ledger lilypond org sass screen sqlite 解析为:
&lt;Command&gt;
  &lt;Order&gt;1&lt;/Order&gt;
&lt;/Command&gt;
  • 其他语言解析正常

另求助下,有没有设置代码块显示行号的设置啊?按照 readme 里面设置没效果,我在hexo配置文件中开启和关闭代码块行号显示了都没效果。
在org文件插入代码块使用 +n 的方法倒是能显示行号,但是在网页中选择代码复制的时候也会把行号给选中复制了,希望选则代码块时不要选中行号。
行号的问题可能和 hexo-renderer-org 无关,只是都再用 hexo 所以顺带问一下 ^V^

中文不显示

我的org文件里面的中文,最终没有被渲染出来!是什么原因导致的呢? 但是用org-mede 导出的html 中文时可以显示的? 这是

我的环境: windows 10 emacs25.1

js lambda错误?怎么解决

ERROR Plugin load failed: hexo-renderer-org
/Users/fangpin/blog/node_modules/hexo-renderer-org/lib/renderer.js:31
return new Promise((reslove, reject) => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (/Users/fangpin/blog/node_modules/hexo/lib/hexo/index.js:213:21)
at /Users/fangpin/blog/node_modules/hexo-renderer-org/index.js:2:16
at /Users/fangpin/blog/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at Promise._resolveCallback (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:431:57)
at Promise._settlePromiseFromHandler (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:522:17)
at Promise._settlePromise (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at /Users/fangpin/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/fangpin/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
at fs.js:334:14
at /Users/fangpin/blog/node_modules/hexo/node_modules/nunjucks/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:43:10
at /Users/fangpin/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at /Users/fangpin/blog/node_modules/hexo/node_modules/warehouse/node_modules/graceful-fs/graceful-fs.js:43:10
at /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:95:15)
INFO Start processing
INFO Files loaded in 220 ms
INFO 0 files generated in 217 ms
INFO Deploying: git
INFO Setting up Git deployment... #

About the time info in org-html-postamble

I updated my blog today (2016-02-10) and restart the server, then it said the following words in the footer:

Last Updated <2015-11-29 Sun 13:08>.
Render by hexo-renderer-org with Emacs 24.5.1 (Org mode 8.2.10)

However, the attribute Last Updated is now referring to creation time. I think it's better to be modified as <2016-02-10 Wed 00:15> ;-)

Thank you.

Cannot parse xml grammar

When I insert xml code as below:

#+BEGIN_SRC xml
   <Command>
     <Order>1</Order>
   </Command>
#+END_SRC

Hexo gives me:

&lt;Command&gt;
  &lt;Order&gt;1&lt;/Order&gt;
&lt;/Command&gt;

error when run command hexo generate

XXX==Error Here==>/home/xu/blog/source/_posts/1.org:
Trailing garbage following expression:

(node:13316) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'parent' of null
(node:13316) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

references

Hi, how would I insert a citation and bibliography using org-ref? It doesn't seem to export it. Or how would I hack the code to add the capability. Thanks

无法解析Tag了。

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: data.setTags is not a function
    at read_tags (/Users/young40/Work/www.young40.com/node_modules/hexo-renderer-org/lib/read-info.js:48:12)
    at read_all (/Users/young40/Work/www.young40.com/node_modules/hexo-renderer-org/lib/read-info.js:78:5)
    at Hexo.read_info (/Users/young40/Work/www.young40.com/node_modules/hexo-renderer-org/lib/read-info.js:10:3)
    at Hexo.tryCatcher (/Users/young40/Work/www.young40.com/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/Users/young40/Work/www.young40.com/node_modules/bluebird/js/release/method.js:15:34)

版本信息

hexo: 3.3.7
hexo-cli: 1.0.3
os: Darwin 16.6.0 darwin x64
http_parser: 2.7.0
node: 8.1.3
v8: 5.8.283.41
uv: 1.12.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
openssl: 1.0.2l
icu: 58.2
unicode: 9.0
cldr: 30.0.3
tz: 2016j

#+INCLUDE: "./paper.org::#theory" 模式生成错误

org文档中插入

#+INCLUDE: "./paper.org::#theory" :only-contents t
Include the body of the heading with the custom id ‘theory’
#+INCLUDE: "./paper.org::mytable" Include named element.
#+INCLUDE: "./paper.org::*conclusion"

模式的包含文件 时生成 提示错误,但在GUI中执行 (org-html-export-as-html nil nil nil nil nil)
是可以生成的

#+INCLUDE: "~/.emacs" :lines "5-10"

模式包含文件 也可以正常生成

LOG:
Debugger entered--Lisp error: (error "Cannot include file /Users/hhds/pks/source/_posts/emacs.org::#regex")
signal(error ("Cannot include file /Users/hhds/pks/source/_posts/emacs.org::#regex"))
error("Cannot include file %s" "/Users/hhds/pks/source/_posts/emacs.org::#regex")

生成blog的标题有问题

你好,当我安装您写的hexo-renderer-org,标题不正确,详情如下图所示:
image
image

如上图所示用了hexo g 命令以后,org 中的标题前面会自动添加序号?

run hexo s

INFO Start processing
XXX==Error Here==>/data/Wiki/source/_posts/simple-test.org:
Trailing garbage following expression:

(node:11923) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'parent' of null
(node:11923) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

sometimes normal list item can be transfered to a task list item

such as this code - [[https://zh.wikipedia.org/wiki/Exit_(%E5%91%BD%E4%BB%A4)][exit]]

the html code just like these

<li class="task-list check"><a href="https://zh.wikipedia.org/wiki/Exit_(%E5%91%BD%E4%BB%A4)" target="_blank" rel="external">exit</a>
</li>

it should have no class name..
there is difference of style between them..

how to insert a image ?

thanks for your work!

but i can't insert image in source/images

image

in org file

[[/images/2016.04.25.23.53.jietu.png]]

renderr to

image

the markdown syntax is not work either

![alt](/images/2016.04.25.23.53.jietu.png)

image

and i use the latest version of hexo-renderer-org

Convert error in the inline emphasis

你好,
最近我发现在使用inline emphasis时,例如=...=, ...,无法正常转换为 <\code>。经过测试,只有当诸如"或者.这样的符号开头时会发生这种错误,例如~.bash~,="hello"=。我知道可以通过设置org-emphasis-regexp-components来解决这种问题,但是这种设置只能保证使用org-mode自己的export-to-html生成html时不会有问题,但是如果使用这个插件生成的html还是会出问题,请问有办法解决吗?谢谢!

some case not support?

when i input text as below, blog export will error.

// ## next text will cause error
// #+BEGIN_EXAMPLE
// #+Tile: dired-mode document
// #+BEGIN_HTML
// ---
// layout: page
// title: TEST
// category : tool
// tags : [tool, emacs]
// ---
// {% include JB/setup %}
// #+END_HTML
// #+END_EXAMPLE

error message:

ERROR Process failed: _posts/tools/CreateBlogWithJeykll.org
YAMLException: name of an alias node must contain at least one character at line 8, column 2:
* Jeykll配置
^
at generateError

line number rendered problem in code block

I put a shell code block in org file, but after rendered, the line number showed wrongly as follows.
There are some blank line in the block, and the line number is not in the right place.
Environment: Windows 7 x64, Emacs 24.5, org mode 8.2.10.

line number problem

Local image doesn't insert correctly

Local image inserted as

[[file:img.png][image]]

has been rendered as

file:///img.png

while the correct url should be something like

http://some.where.com/2015/10/29/post/img.png

删除多余空格个

由于 emacs 启用了 auto-fill-mode,在 80 列的时候会自动换行,使用这个进行导出 html 的时候会多出空格,网上的解决方案如下:https://coldnew.github.io/a1ed40e3/ ,但是我把这段代码加入到相应区域,发现不生效,请问这有更好的解决方案吗?

how to set the footnotes style in config

the original style of footnotes is ugly( there is a new line between foot label and note content).

I read the html code and figure out that the footnote content is a p label in html and displayed in block atrribute.

I want to make them displayed in one line..

I insert #+HTML_HEAD: <style>.footpara{ display:inline; }</style> in org.common at _config.yml
but this code is not placed to in exported html files.
why?

after install hexo-renderer-org, hexo server go with error

without hexo-renderer-org, hexo works fine.
And node.js npm are the newest version just installed.
This is the error message when hexo s -g:

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troub
leshooting.html                                                                        
Template render error: (unknown path) [Line 81, Column 52]
  parseSignature: expected comma after expression
    at Object.exports.prettifyError (/Users/mable/Dropbox/emacs/web/blog/node_modules/nu
njucks/src/lib.js:34:15)                                                               
    at new_cls.render (/Users/mable/Dropbox/emacs/web/blog/node_modules/nunjucks/src/env
ironment.js:469:27)                                                                    
    at new_cls.renderString (/Users/mable/Dropbox/emacs/web/blog/node_modules/nunjucks/s
rc/environment.js:327:21)                                                              
    at /Users/mable/Dropbox/emacs/web/blog/node_modules/hexo/lib/extend/tag.js:66:9
    at Promise._execute (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird/js/re
lease/debuggability.js:300:9)                                                          
    at Promise._resolveFromExecutor (/Users/mable/Dropbox/emacs/web/blog/node_modules/bl
uebird/js/release/promise.js:481:18)                                                   
    at new Promise (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird/js/release
/promise.js:77:14)                                                                     
    at Tag.render (/Users/mable/Dropbox/emacs/web/blog/node_modules/hexo/lib/extend/tag.
js:64:10)                                                                              
    at Object.tagFilter [as onRenderEnd] (/Users/mable/Dropbox/emacs/web/blog/node_modul
es/hexo/lib/hexo/post.js:253:16)                                                       
    at /Users/mable/Dropbox/emacs/web/blog/node_modules/hexo/lib/hexo/render.js:65:19
    at tryCatcher (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird/js/release/
util.js:16:23)                                                                         
    at Promise._settlePromiseFromHandler (/Users/mable/Dropbox/emacs/web/blog/node_modul
es/bluebird/js/release/promise.js:510:31)                                              
    at Promise._settlePromise (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird
/js/release/promise.js:567:18)                                                         
    at Promise._settlePromise0 (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebir
d/js/release/promise.js:612:10)                                                        
    at Promise._settlePromises (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebir
d/js/release/promise.js:691:18)     
at Async._drainQueue (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird/js/r
elease/async.js:133:16)                                                                
    at Async._drainQueues (/Users/mable/Dropbox/emacs/web/blog/node_modules/bluebird/js/
release/async.js:143:10)                                                               
    at Immediate.Async.drainQueues (/Users/mable/Dropbox/emacs/web/blog/node_modules/blu
ebird/js/release/async.js:17:14)                                                       
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)                             

install issue

└─[$]> npm install https://github.com/CodeFalling/hexo-renderer-org\#emacs --save
npm http GET https://github.com/CodeFalling/hexo-renderer-org#emacs
npm http 200 https://github.com/CodeFalling/hexo-renderer-org#emacs
npm ERR! not a package /home/rosa/tmp/npm-10491-B1rG7Brc/1467994807241-0.7062500806059688/tmp.tgz
npm ERR! Error: ENOENT, open '/home/rosa/tmp/npm-10491-B1rG7Brc/1467994807241-0.7062500806059688/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 3.19.0-32-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/CodeFalling/hexo-renderer-org#emacs" "--save"
npm ERR! cwd /home/rosa/Documents/Gitblog
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/rosa/tmp/npm-10491-B1rG7Brc/1467994807241-0.7062500806059688/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/rosa/Documents/Gitblog/npm-debug.log
npm ERR! not ok code 0

Error:Args out of range

添加了较多的org格式的表格之后报错,XXX==Error Here==>/home/rosa/Documents/hexogit/source/_posts/Math/shortcuts.org:
Args out of range: [left left], 2

不知道这是不是node的问题

hexo g

INFO  Start processing
XXX==Error Here==>/home/ziyuan/blogtest/source/_posts/hello_org.org:
Trailing garbage following expression: 
(node:29693) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'parent' of null
(node:29693) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

错误信息如上。完全按照README.org做的配置,使用了相同org测试文件。
已经试了许多变了,都有个错误。
不知道是不是不知道这是不是node的问题,但是如果只有md文件是没有问题的。

Line number not rendered properly

I just followed this guide, restart hexo server and then update the org file, but line number not rendered in my code blocks. I also tried line_number: false but it doesn't works.

hexo g 报错

/home/xu/blog/node_modules/hexo-renderer-org/lib/renderer.js:31
return new Promise((reslove, reject) => {
^
ERROR Plugin load failed: hexo-renderer-org
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (/home/xu/blog/node_modules/hexo/lib/hexo/index.js:213:21)
at /home/xu/blog/node_modules/hexo-renderer-org/index.js:2:16
at /home/xu/blog/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at Promise._resolveCallback (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:431:57)
at Promise._settlePromiseFromHandler (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:522:17)
at Promise._settlePromise (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at /home/xu/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/xu/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
at fs.js:268:14
at /home/xu/blog/node_modules/hexo/node_modules/nunjucks/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:43:10
at /home/xu/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at /home/xu/blog/node_modules/hexo/node_modules/warehouse/node_modules/graceful-fs/graceful-fs.js:43:10
at /usr/local/lib/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at Object.oncomplete (fs.js:107:15)

Fail to hexo generator, if it is a org-mode file to be createded

Development Environment

  • fc24.x86_64
  • GNU Emacs 25.1.1
  • "hexo-renderer-org": "^0.2.4",

Reproduce

creating a new post with file name "test2.org"

M-x blog-admin-start w

Result

XXX==Error Here==>/var/www/org/blog/source/_drafts/test2.org:

Test on travis-ci.org

screenshot from 2016-10-21 18-09-50

install error

When I execute
npm install https://github.com/CodeFalling/hexo-renderer-org#emacs --save
the follow error was reported:
`
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23: 正克隆到 'F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23'...
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23: fatal: '/c/Users/Administrator/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15/C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15' does not appear to be a git repository
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23:
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23: and the repository exists.
npm ERR! git clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\nodejs\node.exe" "E:\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/CodeFalling/hexo-renderer-org#emacs" "--save"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15 F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23
npm ERR! 正克隆到 'F:\msys64\tmp\npm-5932-b0d74f0c\git-cache-c84790bf\b03ad33e7c1bd64ba5960de7aec09cf8c2b8ed23'...
npm ERR! fatal: '/c/Users/Administrator/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15/C:\Users\Administrator\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-CodeFalling-hexo-renderer-org-git-emacs-7223be15' does not appear to be a git repository
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! F:\hexo\npm-debug.log
`
My environment is: (cygwin)
hexo: 3.3.7
hexo-cli: 1.0.2
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.7.0
node: 6.10.3
v8: 5.1.281.101
uv: 1.9.1
zlib: 1.2.11
ares: 1.10.1-DEV
icu: 58.2
modules: 48
openssl: 1.0.2k

Can't use it in Ubuntu

I've getting the following error when attempting to install it in Ubuntu 14.04:

npm http GET https://registry.npmjs.org/org-js-for-hexo-renderer
npm http 304 https://registry.npmjs.org/org-js-for-hexo-renderer
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-51-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "org-js-for-hexo-renderer" "--save"
npm ERR! cwd /home/allenwoods/Code/allenwoods
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/allenwoods/Code/allenwoods/npm-debug.log
npm ERR! not ok code 0

I reinstall nodejs and npm

>> node -v & npm -v
v0.10.40
3.3.9

This time I got another error

npm ERR! Linux 3.16.0-51-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install" "org-js-for-hexo-renderer" "--save"
npm ERR! node v0.10.40
npm ERR! npm  v3.3.9
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/org-js-for-hexo-renderer
npm ERR! 404 
npm ERR! 404 'org-js-for-hexo-renderer' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/allenwoods/Code/allenwoods/npm-debug.log

So I try the git url

>> npm install https://github.com/CodeFalling/hexo-renderer-org.git --save
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported

> [email protected] install /home/allenwoods/Code/allenwoods/node_modules/dtrace-provider
> node scripts/install.js

[email protected] /home/allenwoods/Code/allenwoods
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected] 
│     └── [email protected] 
└─┬ [email protected]  (git+https://github.com/CodeFalling/hexo-renderer-org.git#51eee3827abab015a6b66832b50c062141d9856b)
  └── [email protected] 

then I create a new post and run hexo

hexo g
<h2 id="header-1">Orgmode</h2>
<h3 id="header-1-1">Why orgmode</h3>
我编不下去了。。

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Unmatched 'end' directive for example at line 1
    at Object.Parser.createErrorReport (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:52:12)
    at Object.Parser.parseDirective (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:371:18)
    at Object.Parser.parseElement (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:142:22)
    at Object.Parser.parseElement (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:134:26)
    at Object.Parser.parseNodes (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:84:26)
    at Object.Parser.parseDocument (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:79:10)
    at Object.Parser.parse (/home/allenwoods/Code/allenwoods/node_modules/org/lib/org/parser.js:46:10)
    at Hexo.render (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/index.js:5:30)
    at /home/allenwoods/Code/allenwoods/node_modules/hexo/lib/hexo/render.js:51:21
    at tryCatcher (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)
    at Async.drainQueues (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)
    at process._tickCallback (node.js:448:13)

Since I've learned little about nodejs, I can't figure out what's wrong, please help me:scream: THX!

Error happend with `,#+BEGIN_SRC`

Error happened while I generate from a org-file contain a line ,#+BEGIN_SRC

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Unmatched 'end' directive for src at line 32
    at Object.Parser.createErrorReport (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:52:12)
    at Object.Parser.parseDirective (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:371:18)
    at Object.Parser.parseElement (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:142:22)
    at Object.Parser.parseNodes (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:84:26)
    at Object.Parser.parseDocument (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:79:10)
    at Object.Parser.parse (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/node_modules/org/lib/org/parser.js:46:10)
    at Hexo.render (/home/allenwoods/Code/allenwoods/node_modules/hexo-renderer-org/index.js:6:30)
    at /home/allenwoods/Code/allenwoods/node_modules/hexo/lib/hexo/render.js:51:21
    at tryCatcher (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)
    at Async.drainQueues (/home/allenwoods/Code/allenwoods/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)
    at process._tickCallback (node.js:448:13)

After removing the comma everything became fine.

Define custom links

I defined a custom link (img) in my spacemacs layer :

(defun mp-org/custom-link-img-follow (path)
  "Click event of custom link img."
  (org-open-file-with-emacs path)
   )

(defun mp-org/custom-link-img-export (path desc format)
  "export event of custom link img."
  (cond
   ((eq format 'html)
    ;; concat custom img host and final two section of the path
    (message path)
    (let (uri-slices slices-len url)
         (setq uri-slices (split-string path "/"))
         (setq slices-len (length uri-slices))
         (setq url (if (< slices-len 2)
                    (concat custom-link-img-export-host "/" (car uri-slices))
                    (concat custom-link-img-export-host "/"
                    (nth (- slices-len 2) uri-slices) "/"
                    (nth (- slices-len 1) uri-slices))))
      (message (url-encode-url url))
      (format "<img src=\"%s\" alt=\"%s\"/>" (url-encode-url url) desc))))
  )

 (org-add-link-type "img" 'mp-org/custom-link-img-follow 'mp-org/custom-link-img-export)

It looks like following in org buffers:

[[img:../../../../Dropbox/org/statics/1473343845-django-asgi-websockets_2017-03-14_16-49-55.png]]

Maybe it need a customlinks (or pre) item in config file whose value is the string of elisp codes.

I see closed issue #9 , but always "ERROR Plugin load failed: hexo-renderer-org"

Hi

I see closed issue #9 , but Plugin load failed

configure as follow:
[email protected]
.nvm/v0.10.26
hexo: 3.2.2
hexo-cli: 1.0.2
os: Linux 4.4.8 linux x64
http_parser: 1.0
node: 0.10.26
v8: 3.14.5.9
ares: 1.9.0-DEV
uv: 0.10.25
zlib: 1.2.3
modules: 11
openssl: 1.0.1e

/home/john/github.local/blog/node_modules/hexo-renderer-org/lib/renderer.js:31
return new Promise((reslove, reject) => {
^
ERROR Plugin load failed: hexo-renderer-org
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (/home/john/github.local/blog/node_modules/hexo/lib/hexo/index.js:213:21)
at /home/john/github.local/blog/node_modules/hexo-renderer-org/index.js:2:16
at /home/john/github.local/blog/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/home/john/github.local/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:504:31)
at Promise._settlePromise (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:630:18)
at Promise._resolveCallback (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:425:57)
at Promise._settlePromiseFromHandler (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:516:17)
at Promise._settlePromise (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/home/john/github.local/blog/node_modules/bluebird/js/release/promise.js:630:18)
at /home/john/github.local/blog/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/john/github.local/blog/node_modules/graceful-fs/graceful-fs.js:78:16
at fs.js:266:14
at /home/john/github.local/blog/node_modules/graceful-fs/graceful-fs.js:43:10
at /home/john/.nvm/v0.10.26/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at Object.oncomplete (fs.js:107:15)
INFO Start processing
INFO Files loaded in 2.07 s

Wrong type arguments

Hi,

I tried the example given in the document. But failed, it reports:

XXX==Error Here==>/Users/song/WorkStation/blog/jack2gs.github.io/source/_drafts/My-First-Blog-Post.org:
Wrong type argument: listp, #("Hello,orgmode" 0 13 (:parent (#0)))
(node:22131) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'parent' of null

Could anybody give me a hand?

Environment: macOS 10.12.5, GNU Emacs 25.2.1

Thanks,
Jack

建议采用org-mode-parser

目前renderer使用了emacs来将org文件转换为html。
在hexo.extend.filter.register('before_post_render', 函数里面修改了data.content后是不会修改博客内容的。我看了一下emacs的参数,是不支持直接传递字符串的,所以传递data.content给emacs不好实现。
建议修改实现,可以采用org-mode-parser来导出data.content为html。
org-mode-parser的地址:https://github.com/daitangio/org-mode-parser/blob/master/test/to-html-test.js

cachedir: './hexo-org-cache/'

In the release version of my Blog, the following line is still on the screen.. How to clean it?

cachedir: './hexo-org-cache/'

Plugin load failed: hexo-renderer-org

ERROR Plugin load failed: hexo-renderer-org
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (/home/rosa/Documents/Gitblog/node_modules/hexo/lib/hexo/index.js:213:21)
at /home/rosa/Documents/Gitblog/node_modules/hexo-renderer-org/index.js:2:16
at /home/rosa/Documents/Gitblog/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
at Promise._settlePromise (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
at Promise._resolveCallback (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
at Promise._settlePromiseFromHandler (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
at Promise._settlePromise (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
at /home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
at fs.js:266:14
at /home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/nunjucks/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:43:10
at /home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at /home/rosa/Documents/Gitblog/node_modules/hexo/node_modules/warehouse/node_modules/graceful-fs/graceful-fs.js:43:10
at /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:43:10
at Object.oncomplete (fs.js:107:15)

Issue with org-file not begin with *...

While org-file not begin with *Title, for example:

title: 使用Graphviz制作带数学公式的流程图
date: 2015-10-15 22:26:52
categories:
 - 技术
tags:
 - Graphviz
 - 编辑排版

---

Graphviz是个制作流程图的工具, 使用起来很方便. 美中不足的是不能在流程图中插公式.
借助ladot, 我们可以生成带公式的英文流程图.

#+BEGIN_HTML
<!--more-->
#+END_HTML

* Ladot+Graphviz
ladot支持直接在 =.dot= 文件中用 =Latex= 语法写公式, 比如

hexo will generate the web page from the 借助ladot, rather than from the real begining Graphviz 是个制作流程图的工具...

It seems like it will generate from the second line, since if there is no line break between ...插公式.
and 借助ladot, page will be generated directly *Ladot+Graphviz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.