New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aframe-markdown

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-markdown

aframe-markdown renders markdown using SDF text.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

aframe-markdown

Renders Markdown using SDF text in a-frame.

Demos: https://brianpeiris.github.io/aframe-markdown/demos/

Glitch: https://aframe-markdown.glitch.me/

screen shot of basic demo

Usage

<a-scene 
  markdown="
    normalFont: https://unpkg.com/aframe-markdown/fonts/Roboto-msdf.json; 
    boldFont: https://unpkg.com/aframe-markdown/fonts/Roboto-Bold-msdf.json;
  "
>
  <a-assets>
	<a-asset-item id="md" src="test.md"></a-asset-item>
  </a-assets>
  <a-entity markdown="src: #md" position="0 1.5 -1"></a-entity>
</a-scene>

Component Properties

PropertiesDescriptionDefault
srcThe source for the markdown to render. Either the actual markdown text, or a selector to an a-asset-item that loads the markdown
wrapCountNumber of characters before wrapping text (more or less).40
paddingPadding in meters between the background and the text0.05

System Properties

PropertiesDescriptionDefault
normalFontURL to the msdf.json file for the normal weight font
normalFontURL to the msdf.json file for the bold font

Supported Markdown Features

aframe-markdown supports a basic subset of markdown.

  • Paragraphs
    • Line breaks
  • Headers
  • Images
  • Lists
    • Nested lists
    • Unordered lists
    • Ordered lists
  • Inline bold and italic formatting
  • Blockquotes
  • Horizontal rules
  • Tables
  • Code
    • Inline code
    • Code blocks
  • Links

How it works

aframe-markdown uses a hidden div and marked.js to render the markdown in the background and then re-creates the rendered in a-frame using the HTML's metrics.

FAQs

Package last updated on 06 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc