Project

mindmapdoc

0.0
Low commit activity in last 3 years
No release in over a year
Transforms a markdown document into a mindmap or a mindmap into a markdown document
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.2
~> 0.2, >= 0.2.3
~> 2.1, >= 2.1.0
 Project Readme

Introducing the mindmapdoc gem

require 'logger'
require 'mindmapdoc'

s = "
breakfast
  porridge
  coffee
lunch
  pizza
dinner
  cheese burgers
"
mmd = MindmapDoc.new(s, root: 'today')
puts mmd.to_doc

Markdown document output

# Today

## Breakfast

### Porridge

### Coffee

## Lunch

### Pizza

## Dinner

### Cheese burgers
mmd.to_svg

SVG Output

<title>G</title> <title>today</title> today <title>breakfast</title> breakfast <title>today->breakfast</title> <title>lunch</title> lunch <title>today->lunch</title> <title>dinner</title> dinner <title>today->dinner</title> <title>porridge</title> porridge <title>breakfast->porridge</title> <title>coffee</title> coffee <title>breakfast->coffee</title> <title>pizza</title> pizza <title>lunch->pizza</title> <title>cheese burgers</title> cheese burgers <title>dinner->cheese burgers</title>

Importing a markdown document

s2 = "
# Today

## Breakfast

### Porridge

### Coffee

## Lunch

### Pizza

## Dinner

### Cheese burgers
"

mmd = MindmapDoc.new(s2)
mmd.root  #=> Today
mmd.to_s

Tree Output

Breakfast
  Porridge
  Coffee
Lunch
  Pizza
Dinner
  Cheese burgers

Resources

mindmap mindmapdoc gem