Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support remarkjs #991

Closed
hengyunabc opened this issue Jan 15, 2015 · 5 comments
Closed

Support remarkjs #991

hengyunabc opened this issue Jan 15, 2015 · 5 comments
Labels
duplicate This issue or pull request already exists feature-request

Comments

@hengyunabc
Copy link

https://github.com/gnab/remark

How to add support for remarkjs? Is there any advice?

@hengyunabc
Copy link
Author

I have to rename test.md to test.mymd.

Hexo will process all .md files.

I hope that can ignore some folders.

  • create foleder "slides" under source.
  • create slides/test.html.
layout: false
--------
<!DOCTYPE html>
<html>
  <head>
    <title>Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <style type="text/css">
      @import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
      @import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
      @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

      body { font-family: 'Droid Serif'; }
      h1, h2, h3 {
        font-family: 'Yanone Kaffeesatz';
        font-weight: normal;
      }
      .remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
    </style>
    <script src="http://gnab.github.io/remark/downloads/remark-latest.min.js" type="text/javascript"></script>

  </head>


  <body>
    <script type="text/javascript">
      var slideshow = remark.create({
    sourceUrl: '/slides/test.mymd'
      })
    </script>
  </body>
</html>
  • create slides/test.mymd
  • redeploy
  • visit /slides/test.html

@leesei
Copy link
Member

leesei commented Jul 17, 2015

I think this can be implemented with a theme (with skip_render?) or generator.

@lifei
Copy link

lifei commented Sep 20, 2015

skip_render does not work

@Xuanwo
Copy link
Contributor

Xuanwo commented Dec 1, 2015

@lifei #1146 (comment)

@Xuanwo Xuanwo added duplicate This issue or pull request already exists enhancement New feature or request and removed enhancement New feature or request labels Dec 14, 2015
@Xuanwo
Copy link
Contributor

Xuanwo commented Dec 14, 2015

Closed for duplicate pull request.

@Xuanwo Xuanwo closed this as completed Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists feature-request
Projects
None yet
Development

No branches or pull requests

4 participants