mobiledoc

package module
v0.0.0-...-d2a8965 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 0 Imported by: 3

README

go-mobiledoc

GoDoc

go-mobiledoc is a Go (golang) library for working with Mobiledoc data.

Documentation

Overview

Package mobiledoc holds structures and helper functions for working with mobiledoc data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	CardName *string `json:"cardName,omitempty"`
	HTML     *string `json:"html,omitempty"`
	Markdown *string `json:"markdown,omitempty"`
}

type Mobiledoc

type Mobiledoc struct {
	Version  string          `json:"version"`
	Atoms    []interface{}   `json:"atoms"`
	Cards    [][]interface{} `json:"cards"`
	Markups  []interface{}   `json:"markups"`
	Sections [][]interface{} `json:"sections"`
}

func FromMarkdown

func FromMarkdown(md string) *Mobiledoc

FromMarkdown wraps the given Markdown in a Mobiledoc struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL