Monorepo for Tangled
tangled.org
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.markup.markdown
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 MarkupMarkdownNSID = "sh.tangled.markup.markdown"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.markup.markdown#main", &MarkupMarkdown{})
17} // MarkupMarkdown is a "main" in the sh.tangled.markup.markdown schema.
18// Tangled Flavored Markdown format text
19//
20// RECORDTYPE: MarkupMarkdown
21type MarkupMarkdown struct {
22 LexiconTypeID string `json:"$type,const=sh.tangled.markup.markdown" cborgen:"$type,const=sh.tangled.markup.markdown"`
23 // blobs: list of blobs referenced in markdown
24 Blobs []*util.LexBlob `json:"blobs,omitempty" cborgen:"blobs,omitempty"`
25 // original: Original Markdown before post-processing. Used to restore original input on edit.
26 Original *string `json:"original,omitempty" cborgen:"original,omitempty"`
27 // text: Final post-processed markdown content that will be rendered
28 Text string `json:"text" cborgen:"text"`
29}