All Projects → brianpeiris → aframe-markdown

brianpeiris / aframe-markdown

Licence: MIT license
Render Markdown using SDF text in A-Frame.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aframe-markdown

Aframe
🅰️ web framework for building virtual reality experiences.
Stars: ✭ 13,428 (+67040%)
Mutual labels:  aframe
aframe-react
React library for A-frame
Stars: ✭ 58 (+190%)
Mutual labels:  aframe
aframe-globe-component
3D Globe data visualization component for A-Frame
Stars: ✭ 27 (+35%)
Mutual labels:  aframe
zanzarah-tools
The set of various zanzarah browsing and editing tools, written entirely in coffee and js.
Stars: ✭ 29 (+45%)
Mutual labels:  aframe
a-frame-demos
VR demos built with A-Frame
Stars: ✭ 19 (-5%)
Mutual labels:  aframe
virtual-reality-tour
📍 Virtual reality travel in Google Street View.
Stars: ✭ 34 (+70%)
Mutual labels:  aframe
Aframe Effects
A VR Ready Post processing framework for Three.js and/or A-Frame
Stars: ✭ 176 (+780%)
Mutual labels:  aframe
aframe-lsystem-component
L-System/LSystem component for A-Frame to draw 3D turtle graphics. Using Lindenmayer as backend.
Stars: ✭ 33 (+65%)
Mutual labels:  aframe
a-game
Essential game components for A-Frame!
Stars: ✭ 30 (+50%)
Mutual labels:  aframe
aframe-low-poly
low poly add-ons for aframe virtual reality
Stars: ✭ 18 (-10%)
Mutual labels:  aframe
argon-aframe
glue to use aframe to author argon applications
Stars: ✭ 45 (+125%)
Mutual labels:  aframe
lvr
👓 Augmented Reality for everyone - Out of the world experiences
Stars: ✭ 92 (+360%)
Mutual labels:  aframe
aframe-bmfont-text-component
A-Frame component for rendering bitmap fonts.
Stars: ✭ 62 (+210%)
Mutual labels:  aframe
globe-ar
3D Globe data visualization component in AR
Stars: ✭ 40 (+100%)
Mutual labels:  aframe
aframe-resonance-audio-component
🅰️ Google Resonance Audio (omnitone) for A-Frame
Stars: ✭ 33 (+65%)
Mutual labels:  aframe
Ar.js
Image tracking, Location Based AR, Marker tracking. All on the Web.
Stars: ✭ 3,048 (+15140%)
Mutual labels:  aframe
aframe-fit-texture-component
A fit-texture component for A-Frame VR.
Stars: ✭ 22 (+10%)
Mutual labels:  aframe
aframe-xylayout
Flexbox like 2D layout + UI components for A-Frame.
Stars: ✭ 23 (+15%)
Mutual labels:  aframe
aframe-speech-controls-component
alternative form of inputs for in-VR interaction with the content of a scene
Stars: ✭ 13 (-35%)
Mutual labels:  aframe
aframe-keyboard
An Aframe component that renders a fully functional 3D keyboard, that works on mobile, desktop browers, and VR headsets!
Stars: ✭ 23 (+15%)
Mutual labels:  aframe

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

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.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].