🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

koara-html

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koara-html

bundlerRubyGems.org
Version
0.15.0
Version published
Maintainers
1
Created
Source

Koara

Build Status Coverage Status Gem License

Koara-rb-html

Koara is a modular lightweight markup language. This project can render the koara AST to Html in Ruby. The AST is created by the core koara parser.

Getting started

gem install koara-html

Usage

require 'koara'
require 'koara/html'

parser = Koara::Parser.new
result = parser.parse('Hello World!')
renderer = Koara::Html::Html5Renderer.new
result.accept(renderer)
puts renderer.output

Configuration

You can configure the Renderer:

  • renderer.partial
    Default: true

    When false, the output will be wrapped with a <html> and <body> tag to make a complete Html document.

FAQs

Package last updated on 07 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts