Coder Social home page Coder Social logo

chk2 / sublime-strapdown-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michfield/sublime-strapdown-preview

0.0 1.0 0.0 261 KB

Markdown preview plugin for Sublime Text 3 using Strapdown.js. No server-side processing is required as Strapdown.js is purely browser-based Markdown converter using Twitter Bootstrap for theming support.

JavaScript 88.40% Python 7.21% CSS 4.40%

sublime-strapdown-preview's Introduction

ST3 » Strapdown.js Markdown Preview

Sublime Text 3 plug-in that allows you preview your markdown files in your browser, using beautiful Strapdown.js.

Strapdown.js is mixing some Javascript with Bootstrap (Twitter's HTML5 & CSS framework) to show you beautiful presentation of your Markdown files.

The good thing about Strapdown.js is that resulting HTML, besides looking very good and being themeable, also contains unmodified Markdown content that can be easily edited anywhere and extracted back, if you need it again.

Installation

  • recommended is to use use Sublime Package Manager
  • press Ctrl+Shift+P then Package Control: Install Package
  • look for Strapdown.js Markdown Preview and install it.

Usage

  • use Ctrl+Shift+P then Strapdown.js Markdown Preview to launch a preview
  • or bind some key in your user key binding, using a line like this one:
    { "keys": ["ctrl+alt+m"], "command": "strapdown_markdown_preview", "args": {"target": "browser"} },

Metadata

You can specify additional attributes on top of your text file / active window. These details can change theme and the title of rendered file. Just add a comment near the start, like this:

<!--
  Title: Strapdown.js Markdown Preview plugin for Sublime Text
  Theme: cerulean
-->

The idea is very similar to YAML Front Matter or MultiMarkdown metadata header block, but it's more in line with Strapdown.js idea. Thus using HTML comment markers as metadata markers.

Metadata can be anywhere in document. If some attribute is specified multiple times, the last value will be used. For now, the only usable attributes are title and theme.

Licence

The code is available at GitHub under MIT licence.

sublime-strapdown-preview's People

Contributors

cvladan avatar michfield avatar zdxerr avatar

Watchers

Chk2 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.