Coder Social home page Coder Social logo

skyheero / seapig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yasumichi/seapig

0.0 0.0 0.0 2.24 MB

SeaPig is converter from markdown to html with marked.js and highlight.js.

Home Page: https://yasumichi.github.io/seapig/

License: MIT License

JavaScript 53.11% HTML 3.21% CSS 42.85% Shell 0.82%

seapig's Introduction

SeaPig

SeaPig is converter from markdown to html with marked.js and highlight.js.

Usage

SeaPig has two panes. Left pane is editor. Right pane is HTML previewer.

When you input markdown, SeaPig refresh HTML preview.

You can use GitHub Flavored Markdown.

SeaPig has tool bar contains one drop down list and eight buttons.

You can select key bindings from drop down list. (default/emacs/vim/sublime)

Eight buttons has feature below.

  • New markdown file (Open new window)
  • Open markdown file to editor.
  • Save markdown file from editor.
  • Export HTML file from previewer.(At the same time css stylesheet is copied to same folder.)
  • Export PDF file
  • Hide editor
  • Hide previewer
  • Refresh HTML preview

viz.js support

When You write code block as graphviz language and write dot language, rendering graph image at svg as below.

```graphviz
digraph g { a -> b; }
```

to

uiflow support

When You write code block as uiflow language and write uiflow language, rendering graph image at svg as below.

```uiflow
[top page]
user name
password
--
login
==>mypage

[mypage]
favorite list
```

to

MathJax support (code block only)

```math
E=mc^2
```

to

More example, test/mathjax.md

mermaid support

When You write code block as mermaid language and write mermaid language, rendering graph image at svg as below.

```mermaid
sequenceDiagram
    participant main
    participant renderer
    participant previewer
    main->>renderer: Open file
    renderer->>previewer: Refresh preview
```

to

For developers

How to build

$ git clone https://github.com/yasumichi/seapig.git
$ cd seapig
$ git submodule update -i
$ npm install
$ npm build-dep
...

How to lunch

$ npm start

How to package

$ npm run package:win32

How to package all (on Linux)

$ ./build.sh

ToDo

  • save your favorite keybindings (default/emacs/vim)
  • support task list item.
  • add viz.js support
  • add uiflow support.
  • add mermaid support
  • add simultaneous scroll
  • add original menu
  • add new document
  • add alternative stylesheet
  • control display editor and previewer
  • add batch mode
  • introduce virtual dom framework (mithril.js)

Special Thanks

License

MIT (excludes photon, node_modules and icons)

Copyright © 2016-2019 Yasumichi Akahoshi

Icons copyright

  • seapig.icns
  • seapig.ico
  • seapig.png

Copyright © いらすとや. All Rights Reserved.

seapig's People

Contributors

yasumichi avatar

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.