markdown-styles

WebJar for markdown-styles

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.bowergithub.advanced-rest-client
ArtifactId

ArtifactId

markdown-styles
Last Version

Last Version

2.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

markdown-styles
WebJar for markdown-styles
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/markdown-styles

Download markdown-styles

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/markdown-styles/ -->
<dependency>
    <groupId>org.webjars.bowergithub.advanced-rest-client</groupId>
    <artifactId>markdown-styles</artifactId>
    <version>2.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/markdown-styles/
implementation 'org.webjars.bowergithub.advanced-rest-client:markdown-styles:2.0.5'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/markdown-styles/
implementation ("org.webjars.bowergithub.advanced-rest-client:markdown-styles:2.0.5")
'org.webjars.bowergithub.advanced-rest-client:markdown-styles:jar:2.0.5'
<dependency org="org.webjars.bowergithub.advanced-rest-client" name="markdown-styles" rev="2.0.5">
  <artifact name="markdown-styles" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.advanced-rest-client', module='markdown-styles', version='2.0.5')
)
libraryDependencies += "org.webjars.bowergithub.advanced-rest-client" % "markdown-styles" % "2.0.5"
[org.webjars.bowergithub.advanced-rest-client/markdown-styles "2.0.5"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on NPM

Markdown styles set for API components

The styles are applied to the element with [slot="markdown-html"] attribute.

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/markdown-styles

In a LitElement

import { LitElement, html, css } from 'lit-element';
import markdownStyles from '@advanced-rest-client/markdown-styles/markdown-styles.js';

class MarkdownImpl extends LitElement {
  static get styles() {
    return css`
    :host {
      ...
    }
    ${markdownStyles}
  }

  render() {
    return html`
    <marked-element markdown="....">
      <div slot="markdown-html"></div>
    </marked-element>`;
  }
}

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/markdown-styles/markdown-styles-polymer.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <style include="markdown-styles"></style>
    <marked-element markdown="...">
      <div slot="markdown-html"></div>
    </marked-element>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Note, the element does not include Polymer library.

Installation

git clone https://github.com/advanced-rest-client/markdown-styles
markdown-styles
npm install
org.webjars.bowergithub.advanced-rest-client

ARC

A set of repositories related to the Advanced REST Client and API console (by Mulesoft)

Versions

Version
2.0.5