Giter Site home page Giter Site logo

cbserra / dynamic-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tal-baum/dynamic-markdown

0.0 0.0 0.0 97 KB

Extension to Markdown for creating interactive documents

License: Other

JavaScript 88.39% CoffeeScript 8.30% CSS 0.80% HTML 2.51%

dynamic-markdown's Introduction

Dynamic Markdown

Extension to Markdown for creating interactive documents

Live demo

What is it?

Embedding models and data into documents allows for exploration and understanding that isn't possible with static text and images, but authoring these documents can be time-consuming and require knowledge of HTML, CSS, and JavaScript. Dynamic Markdown is a proposed solution to enable fast and straightforward authoring of interactive documents.

Dynamic Markdown is a work in progress; additional elements and D3 templates for declaratively adding charts coming soon. For more information on the motivation behind Dynamic Markdown, see www.tal.bio/blog.

Using Dynamic Markdown

Dynamic Markdown takes as input a plaintext .md document and converts it in-browser to Tangle code using a Coffeescript plug-in.

The new dynamic content syntax follows this convention:

[text content]{variable_name: configuration}

For example:

[500 miles]{walk_distance: 100..1000 by 10}

creates an adjustable number initialized at 500 with a range of 100 to 1,000 in increments of 10. Subsequent code linking elements together can be written using Coffeescript, e.g.

And I would walk [500]{second_walk} more.
@second_walk = @walk_distance * 3

Acknowledgements

To create Dynamic Markdown I revived and combined two GitHub projects that had laid dormant for four years, bringing what I think is the very elegant syntax in Alec Perkins's ActiveMarkdown to the lean Coffeescript codebase of @jotux's Fangle.

dynamic-markdown's People

Contributors

tal-baum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.