Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brianpeiris/aframe-markdown

Render Markdown using SDF text in A-Frame.
https://github.com/brianpeiris/aframe-markdown

aframe markdown

Last synced: about 1 month ago
JSON representation

Render Markdown using SDF text in A-Frame.

Awesome Lists containing this project

README

        

# aframe-markdown

[![](https://img.shields.io/npm/v/aframe-markdown.svg)](https://www.npmjs.com/package/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](demos/basic-screenshot.jpg)

## Usage

```html




```

## Component Properties

|Properties|Description|Default|
|-|-|-|
|src|The source for the markdown to render. Either the actual markdown text, or a selector to an a-asset-item that loads the markdown||
|wrapCount|Number of characters before wrapping text (more or less).|40|
|padding|Padding in meters between the background and the text|0.05|

## System Properties

|Properties|Description|Default|
|-|-|-|
|normalFont|URL to the msdf.json file for the normal weight font||
|normalFont|URL to the msdf.json file for the bold font||

## Supported Markdown Features

aframe-markdown supports a basic subset of markdown.

- [x] Paragraphs
- [x] Line breaks
- [x] Headers
- [x] Images
- [x] Lists
- [x] Nested lists
- [x] Unordered lists
- [x] 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.