voc

WebJar for voc

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

voc
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

voc
WebJar for voc
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/SheetJS/voc

Download voc

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/voc/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>voc</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/voc/
implementation 'org.webjars.npm:voc:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/voc/
implementation ("org.webjars.npm:voc:1.1.0")
'org.webjars.npm:voc:jar:1.1.0'
<dependency org="org.webjars.npm" name="voc" rev="1.1.0">
  <artifact name="voc" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='voc', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "voc" % "1.1.0"
[org.webjars.npm/voc "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Very Ornate Code

So Literate Coffeescript is a cool idea, but why isn't there a standard JS or compile-to-JS version? JS Programmers want some love too! This is my effort to rectify this inequity.

How to use this

To use in-browser, include the marked source (and optionally the coffee-script source if desired):

<script src="https://raw.github.com/chjj/marked/master/lib/marked.js"></script>
<script src="http://coffeescript.org/extras/coffee-script.js"></script>

In tooling, npm install -g voc and run against your markdown file:

$ voc yourfile.md

VOC style

VOC searches for markdown code blocks. Using GFM guards (triple backticks), hints after the opening backticks are used to direct content.

For example, "```>foo.bar" will redirect content in the codeblock to foo.bar.

Preprocessing

If a preprocessor is available, VOC can be told to use it! This is needed for certain magic cases like Makefiles (which require explicit tabs).

VOC exposes two utility functions:

VOC.run(src) will process the specified string source.

VOC.add(lang, cb) will assign the handler for the language. If lang is an array, the handler will be assigned for each language in the array.

The language handlers will be called with one argument: the actual source to be processed. Consecutive blocks with the same language are concatenated.

See the enclosed voc.md for more information.

Dependencies Status NPM Downloads ghit.me Analytics

org.webjars.npm

SheetJS

Truly Open Source Data Tools and Miscellany

Versions

Version
1.1.0