GithubHelp home page GithubHelp logo

isabella232 / plugin-viewtool-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotcms/plugin-viewtool-markdown

0.0 0.0 0.0 420 KB

dotCMS Markdown Processor

License: GNU General Public License v2.0

Java 100.00%

plugin-viewtool-markdown's Introduction

Github Flavored Markdown plugin

Description

This dotCMS osgi plugin provides a github flavored markdown (gfm) compatible markdown parser (for the most part). It is built off of the txtmark project https://github.com/rjeschke/txtmark by René Jeschke. It provides a viewtool that can be used in dotCMS to parse text/content for gfm.

###Usage $markdown.parse("**Parse** *this* ~~string~~") will result in

Parse this string

$markdown.parseFile("/application/my-file.md") or $markdown.parseFile("/application/my-file.md", false)

Will parse /application/my-file.md

$markdown.parseFile("/application/my-file.md", true)

Will render the file /application/my-file.md as velocity then parse the output of it as markdown

You can also call a file on a different site (hosted in the same dotCMS instance) $markdown.parseFile("//global.host.com/application/my-file.md")

will parse the /application/my-file.md on global.host.com

There are no dependices to install, all you need to do is upload the ./build/libs/plugin-viewtool-markdown-0.1.jar into your dynamic plugins screen and the viewtool should become active.

plugin-viewtool-markdown's People

Contributors

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