GithubHelp home page GithubHelp logo

isabella232 / helix-markdown-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/helix-markdown-preview

0.0 0.0 0.0 1.2 MB

Google Chrome Extension to preview markdown files while editing

License: Apache License 2.0

JavaScript 79.55% HTML 10.65% CSS 9.80%

helix-markdown-preview's Introduction

Helix Markdown Preview

codecov CircleCI GitHub license GitHub issues

LGTM Code Quality Grade: JavaScript

Google Chrome Extension to preview markdown files on GitHub, either static or live as you type. It can have markdown rendered standalone, or using Helix.

1. Installation

1.1 Developer mode

  1. Download and extract the latest release, or clone this repository to your local disk: git clone https://github.com/rofe/helix-markdown-preview.git
  2. Open Chrome and navigate to chrome://extensions
  3. Turn on Developer mode at the top right of the header bar
    Developer mode
  4. Click the Load unpacked button in the action bar
    Load unpacked
  5. Navigate to the src directory of your local copy and click Select to install and activate the extension
  6. Verify if your Extensions page displays a box like this:
    Extension box
    and the tool bar shows a grayed out Helix icon:
    Extension icon disabled

1.2 End user mode

Stay tuned...

2. Usage

2.1 Static preview

  1. Navigate to any markdown (*.md) file on GitHub, like this one for example.
  2. Click the Raw button. Notice how the Helix icon in the toolbar is colored now:
    Extension icon enabled
  3. Click it.
  4. A popup opens, showing the rendered output.

2.2 Preview as you type

  1. Navigate to any markdown (*.md) file on GitHub.
  2. Click the pencil icon to switch to editing mode (only available if you have write access). Notice how the Helix icon in the toolbar is colored now:
    Extension icon enabled
  3. Click it.
  4. A popup opens, showing the rendered output.
  5. Edit the markdown and observe the changes in the popup.

The zoom factor in the preview window is adjusted automatically to the window size. You can also set it manually using the dropdown at the top right.

2.3 Helix Configuration

By default, markdown will be rendered in standalone mode in your browser. In order to let a Helix server render the markdown, follow these steps:

  1. Start a local Helix server. See www.project-helix.io how to set it up.
  2. Open a new browser window, click the grayed out Helix icon in the toolbar and select Options:
    Context menu - Options
  3. Click the checkbox to enable Helix rendering.
  4. Provide the base URL of your Helix server, e.g. http://localhost:3000.
  5. Navigate to a markdown (*.md) file, e.g. index.md, in your project's repository on GitHub. In theory, you can use any markdown file from any repository, as long as the file path can be matched on your Helix server.
  6. Click either the Raw button (for static preview) or pencil icon (for live preview), then Helix icon in the tool bar.
  7. A popup opens, showing the rendered output from Helix.

Non-local Helix servers are currently not supported.

3rd party dependencies

Helix Markdown Preview uses the following libraries:

helix-markdown-preview's People

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.