Hello

to the world.

Example Record

{
    "$type": "at.markpub.markdown",
    "text": "# Hello \n Hello to the world.",
    "flavor": "GFM",
    "preferedRenderer": "markdown-it"
}

Used with Standard.Site

{
	"$type": "site.standard.document",
	"publishedAt": "2024-06-08T10:00:00.000Z",
	"site": "at://did:plc:t5xmf33p5kqgkbznx22p7d7g/site.standard.publication/3mbrgnnqzrr2q",
	"path": "/essays/the-internet-is-a-series-of-webs/",
	"title": "The Internet is a Series of Webs",
	"description": "The fate of the open web is inextricable from the other ways our world is in crisis. What can we do about it?",
	"coverImage": {
		"$type": "blob",
		"ref": {
			"$link": "bafkreig2247wcpqjkqy2ukjh4gjyqhpl32kg3pva4x55npjmuh4joeware"
		},
		"mimeType": "image/jpeg",
		"size": 347901
  	},
	"textContent": "<textContent>",
	"content": {
		"$type": "at.markpub.markdown",
		"text": "<markdown here>",
		"flavor": "CommonMark",
        "preferredRenderer": "markdown-it",
        "extensions": ["YAML"]
	},
	"bskyPostRef": {
		"$type": "com.atproto.repo.strongRef",
		"uri": "at://did:plc:t5xmf33p5kqgkbznx22p7d7g/app.bsky.feed.post/3kulbtuuixs27",
		"cid": "bafyreigh7yods3ndrmqeq55cjisda6wi34swt7s6kkduwcotkgq5g5y2oe"
	},
	"tags": ["IndieWeb", "Tech", "The Long Next", "series:The Wild Web"],
	"updatedAt":"2024-06-08T10:30:00.000Z"

}

Lexicon:


{
  "lexicon": 1,
  "id": "at.markpub.markdown",
  "defs": {
    "main": {
      "type": "record",
      "record": {
        "type": "object",
        "properties": {
          "text": {
            "description": "Text in markdown. May include anything that is valid markdown syntax for your flavor. Make sure it is properly escaped if necessary.",
            "type": "string"
          },
          "flavor": {
            "description": "Markdown may be rendered in many flavors. The most common are CommonMark and Github Flavored Markdown (GFM). Generally your markdown is one of those two and if you don't know then it is likely CommonMark. At this time the lexicon only recognizes these two flavors. Submit a PR if you think one should be added.",
            "type": "string",
            "enum": [
              "GFM",
              "CommonMark"
            ],
            "default": "CommonMark"
          },
          "preferredRenderer": {
            "description": "Different rendering systems for Markdown may introduce slight or significant changes to the resulting HTML. This setting allows you to specify your preferred renderer. Keep in mind that no consuming entity is obligated to honor this preference. Some examples might be `marked`, `pandoc`, `markdown-it` `mdxt`, etc. Generally, this lexicon assumes that you are pulling the Markdown from an existing site that includes an existing rendering process. The processor used for that process to build your site's pages is the one you should include here. If you don't know then just leave this field out.",
            "type": "string"
          },
          "extensions": {
            "description": "The Markdown community expects certain extensions to mainline Markdown flavors. This setting allows you to note to a renderer what extensions might be expected. The most common is LaTeX. Rendering systems may choose to render these extensions in a variety of ways or present them raw. It is not required that you include YAML in the text field itself, if you choose to, note it in this field.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "text",
          "flavor"
        ]
      }
    }
  }
}