Giter Club home page Giter Club logo

asciidoctor-browser-extension's Introduction

Asciidoctor Browser Extension

This project uses Asciidoctor.js to preview AsciiDoc as HTML inside Chrome (or Chromium), Firefox and Opera!

chromewebstore badge wborder 496x150 AMO button 1 addons 206x58 en@2x edgewebstore badge

Project health: Build Status Build Status

Usage

Chrome, Chromium, Brave or Opera

  1. Install the extension from the Chrome Web Store or the Opera Add-ons website

  2. Check Allow access to file URLs in chrome://extensions

  3. Open local or remote .ad, .adoc, .asc, .asciidoc files in your browser

  4. Enjoy!

Firefox

  1. Install the extension from the Firefox Add-ons website

  2. Open local or remote .ad, .adoc, .asc, .asciidoc files in Firefox

  3. Enjoy!

⚠️

On Firefox, pages viewed directly from GitHub may not render properly. This is result of a Firefox bug carrying over the Content Security Policies (CSP). The restrictive CSP sent by GitHub are applied to the content inserted by the WebExtension.

In addition, the extension does not automatically trigger in Firefox when navigating to a file:// from a link. Instead, you have to enter the file:// URL directly into the address bar of the browser. If you do navigate to a file:// URL from a link, simply highlight the address bar and press "Enter" to force the extension to load. There’s an open issue in the Firefox bug tracker to fix this limitation.

Installation

Loading your local copy of the extension on Chrome (or Chromium), Firefox or Opera is super easy!

Chrome, Chromium, Brave or Opera

  1. Check Developer mode in chrome://extensions

  2. Click Load unpacked extension…​ and select the extension app directory

  3. That’s all

To see your changes, click the Reload (Ctrl+R) link in chrome://extensions. If you want to create a Pack extension just make a zip file of the extension app directory.

Firefox

  1. Click on the Load Temporary Add-on in about:debugging

  2. Select the manifest file in the app directory

  3. That’s all

To see your changes, click the Reload link in about:debugging.

Options

The extension can be configured via an options page.

To open the options page, in Chrome, Brave or Opera, right-click the extension icon and choose Options on the menu. You can also go to chrome://extensions and click the Options link.

In Firefox, go to about:addons and click the More link or the Preferences button.

The options page let you add custom Asciidoctor attributes or change the theme of the AsciiDoc HTML output.

Contributing

See the hacking file.

Changelog

See the changelog file.

Copyright © 2013-2020 Guillaume Grossetie. Free use of this software is granted under the terms of the MIT License.

See the LICENSE file for details.

asciidoctor-browser-extension's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ehmkah avatar ggrossetie avatar jfstn avatar linomlt avatar mattpalermo avatar mojavelinux avatar puffybsd avatar rotty3000 avatar ssebastianj avatar utopalex avatar

Watchers

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