kuanyui / hexo.el

Use Hexo in Emacs elegantly
85 stars 14 forks source link

org mode support #8

Closed driftcrow closed 7 years ago

driftcrow commented 7 years ago

I have almost done a branch for org-mode support,but I don't seen you have already create a branch .so code is diffrent from your OrgModeSupport branch,I create this direct from your master branch. I have test for myself org files,works fine.please review these.

NoahDragon commented 7 years ago

Thanks! Nice job!

kuanyui commented 7 years ago

Thanks for your contribution, please wait for my testing. It's not convenient for me to get an Emacs to test in a short period.

driftcrow commented 7 years ago

maybe you can try ERT, create unit test file ,then I keep your regulation.

kuanyui commented 7 years ago

Sorry for late. I'm reviewing your PR, could you give me a sample file? I'm not using org parser, so I use the sample cases discussed in https://github.com/kuanyui/hexo.el/issues/6

driftcrow commented 7 years ago

OK, hexo with org-mode file use hexo-renderer-org render org file to html. Orgmode has its own way to describe meta info of post,such as title,date etc. the sample file you can see README in hexo-renderer-org , like:

#+TITLE: Hello,orgmode
#+DATE: <2015-11-15 Sun 17:00>
#+TAGS: emacs, orgmode, hexo
#+LAYOUT: post
#+CATEGORIES: orgmode
* Orgmode
** Why org
#+BEGIN_SRC js
console.log('hello');
#+END_SRC
我编不下去了。。
kuanyui commented 7 years ago

I make some changes before merge. Please try it and tell me if you encounters any problem. @driftcrow

To make hexo-new works properly, please check out https://github.com/kuanyui/hexo.el#org-mode-support for configuration

Thanks for your contribution :) :heart: