πŸ“š Agora node [[markdown]] β˜†
Agora nodes contain community contributions with titles or topics that match your search. x
πŸ“œ File markdown.md by @flancian β˜† πŸ“Ž οΈπŸ”— ✍️ β›Ά

MarkdownΒ§

πŸ“œ File pages/markdown.org by @vera β˜† πŸ“Ž β›Ά
* [[I don’t like markdown]] * [[markdown alternatives]] *
πŸ“œ File markdown.md by @neil β˜† πŸ“Ž οΈπŸ”— ✍️ β›Ά

MarkdownΒ§

πŸ“œ File wiki/Computer-Science/Markdown.md by @jaysen β˜† πŸ“Ž οΈπŸ”— β›Ά

#plaintext #markdown #docs

Markdown is lightweight markup language that uses plain-text symbols to format documents so they remain easy to read as raw text and can convert into HTML or other format.

John Gruber created it in 2004 with input from Aaron Swartz, and files typically use the .md extension.

Why Use Markdown?Β§

from markdownguide.org - Why Use Markdown

You might be wondering why people use Markdown instead of a WYSIWYG editor. Why write with Markdown when you can press buttons in an interface to format your text? As it turns out, there are several reasons why people use Markdown instead of WYSIWYG editors.

  • Markdown can be used for everything. People use it to create websites, documents, notes, books, presentations, email messages, and technical documentation.

  • Markdown is portable. Files containing Markdown-formatted text can be opened using virtually any application. If you decide you don’t like the Markdown application you’re currently using, you can import your Markdown files into another Markdown application. That’s in stark contrast to word processing applications like Microsoft Word that lock your content into a proprietary file format.

  • Markdown is platform independent. You can create Markdown-formatted text on any device running any operating system.

  • Markdown is future proof. Even if the application you’re using stops working at some point in the future, you’ll still be able to read your Markdown-formatted text using a text editing application. This is an important consideration when it comes to books, university theses, and other milestone documents that need to be preserved indefinitely.

  • Markdown is everywhere. Websites like Reddit and GitHub support Markdown, and lots of desktop and web-based applications support it.

UsageΒ§

People commonly use Markdown for README files, documentation, note-taking apps, forums, blogs, and AI/LLM outputs.

Learning MarkdownΒ§

πŸ“œ File markdown.myco by @melanocarpa β˜† πŸ“Ž οΈπŸ”— ✍️ β›Ά

Markdown is a markup language. Seems to be popular. Meant to be simple. My nemesis.

The good thing about Markdown is that is has shown many people the joy of lightweight markups.

Nemesisry, nemesiship

I don't like many things about Markdown, starting with its choice of tokens and its paragraph logic, finishing with the vast amount of dialects and the reasons why they exist in the first place.

John Gruber got these things wrong:

  • The whole premise of being print-ready in the source form.

  • Characters for headings.

  • Support for different markers for unordered lists.

  • Markers for numbered lists. They are numbers.

  • HTML is allowed, making it a subset of Markdown. At least, of some dialects.

πŸ“œ File markdown.md by @agora@botsin.space β˜† πŸ“Ž β›Ά
πŸ“œ File Markdown.md by @agora@botsin.space β˜† πŸ“Ž β›Ά
πŸ“œ File markdown.md by @an_agora@twitter.com β˜† πŸ“Ž β›Ά
πŸ“œ File Markdown.md by @an_agora@twitter.com β˜† πŸ“Ž β›Ά
πŸ“œ File markdown.md by @anagora@matrix.org β˜† πŸ“Ž β›Ά
πŸ“œ File Markdown.md by @anagora@matrix.org β˜† πŸ“Ž β›Ά

Loading pushes...

✨ AI Synthesis Mistral Gemini ChatGPT Claude x

Expanding this section will automatically generate an AI synthesis of the contributions in this node.

🌌 Agora context for [[markdown]]

Rendering context...

πŸ“š Agora node [[convert a folder of org files to markdown]] (pulled by the Agora)
πŸ“œ File convert-a-folder-of-org-files-to-markdown.md by @neil β˜† πŸ“Ž οΈπŸ”— ✍️

Convert a folder of org files to markdownΒ§

I wanted to see how my [[org-roam]] files look like in [[Obsidian]]‘s graph view. Commence massive yak shave to recursively convert a folder of org files to markdown. Result below, pretty much a copy paste from here: Bulk Org-Mode to Github Flavored Markdown. (I didn’t bother with github flavoured markdown though).

In the process I discovered that pandoc doesn’t convert extensions of cross-file links, which was massively annoying.

;;;###autoload
(require 'org)

(defun dired-org-to-markdown ()
    (let ((files
                     (append
                                 (let ((default-directory "."))
                                               (mapcar #'expand-file-name
                                                                           (file-expand-wildcards "**/*.org")))
                                           (let ((default-directory "."))
                                                         (mapcar #'expand-file-name
                                                                                     (file-expand-wildcards "*.org")))
                                                    )
                              ))
          (mapc
                 (lambda (f)
                          (with-current-buffer
                                       (find-file-noselect f)
                                                (org-md-export-to-markdown)))
                      files))
      )

(dired-org-to-markdown)

Pop the above in a file called something like export.el, then run it with:

emacs --batch --load=export.el

NinjaΒ§

Jethro Kuan uses Ninja for this: https://github.com/jethrokuan/braindump/blob/master/build.py

I’d like to do this so I could export to a repo that could be picked up by [[Agora]].

I haven’t done it, but it would probably be done by using a filter on the Markdown org-export backend:

(defun commonplace/md-link-to-wikilink (text backend info)
  (when (org-export-derived-backend-p backend 'md)
    (replace-regexp-in-string "..." "..." text)))

(add-to-list 'org-export-filter-link-functions
             'commonplace/md-link-to-wikilink)
πŸ“š Agora node [[docs to markdown]] (pulled by the Agora)
πŸ“œ File docs to markdown.md by @flancian β˜† πŸ“Ž οΈπŸ”— ✍️
πŸ“š Agora node [[full markdown]] (pulled by the Agora)
πŸ“œ File full markdown.md by @an_agora@twitter.com β˜† πŸ“Ž
πŸ“š Agora node [[githubflavoredmarkdown]] (pulled by the Agora)
πŸ“œ File docs/plugins/GitHubFlavoredMarkdown.md by @matthieuG β˜† πŸ“Ž

This plugin enhances Markdown processing to support GitHub Flavored Markdown (GFM) which adds features like autolink literals, footnotes, strikethrough, tables and tasklists.

In addition, this plugin adds optional features for typographic refinement (such as converting straight quotes to curly quotes, dashes to en-dashes/em-dashes, and ellipses) and automatic heading links as a symbol that appears next to the heading on hover.

[!note] For information on how to add, remove or configure plugins, see the [[Configuration]] page.

This plugin accepts the following configuration options:

  • enableSmartyPants: When true, enables typographic enhancements. Default is true.
  • linkHeadings: When true, automatically adds links to headings. Default is true.

APIΒ§

πŸ“š Agora node [[i don't like markdown]] (pulled by the Agora)
πŸ“œ File pages/I don't like markdown.org by @vera β˜† πŸ“Ž
* There are two main reasons ** [[too many markdown flavors]] ** [[markdown doesn’t support mediawiki-style links]] ** * [[markdown alternatives]] *
πŸ“œ File I don't like markdown.md by @anagora@matrix.org β˜† πŸ“Ž
πŸ“š Agora node [[myst markdown]] (pulled by the Agora)
πŸ“œ File myst markdown.md by @goldfishlaser β˜† πŸ“Ž οΈπŸ”—

myst markdownΒ§

Core ideaΒ§

πŸ“š Agora node [[obsidianflavoredmarkdown]] (pulled by the Agora)
πŸ“œ File docs/plugins/ObsidianFlavoredMarkdown.md by @matthieuG β˜† πŸ“Ž

This plugin provides support for [[Obsidian compatibility]].

[!note] For information on how to add, remove or configure plugins, see the [[Configuration]] page.

This plugin accepts the following configuration options:

  • comments: If true (default), enables parsing of %% style Obsidian comment blocks.
  • highlight: If true (default), enables parsing of == style highlights within content.
  • wikilinks:If true (default), turns [[wikilinks]] into regular links.
  • callouts: If true (default), adds support for [[callout]] blocks for emphasizing content.
  • mermaid: If true (default), enables [[Mermaid diagram]] rendering within Markdown files.
  • parseTags: If true (default), parses and links tags within the content.
  • parseArrows: If true (default), transforms arrow symbols into their HTML character equivalents.
  • parseBlockReferences: If true (default), handles block references, linking to specific content blocks.
  • enableInHtmlEmbed: If true, allows embedding of content directly within HTML. Defaults to false.
  • enableYouTubeEmbed: If true (default), enables the embedding of YouTube videos and playlists using external image Markdown syntax.
  • enableVideoEmbed: If true (default), enables the embedding of video files.
  • enableCheckbox: If true, adds support for interactive checkboxes in content. Defaults to false.
  • disableBrokenWikilinks: If true, replaces links to non-existent notes with a dimmed, disabled link. Defaults to false.

[!warning] Don’t remove this plugin if you’re using [[Obsidian]] to author the content!

APIΒ§

πŸ“š Agora node [[oxhugoflavoredmarkdown]] (pulled by the Agora)
πŸ“œ File docs/plugins/OxHugoFlavoredMarkdown.md by @matthieuG β˜† πŸ“Ž

This plugin provides support for ox-hugo compatibility. See [[OxHugo compatibility]] for more information.

[!note] For information on how to add, remove or configure plugins, see the [[Configuration]] page.

This plugin accepts the following configuration options:

  • wikilinks: If true (default), converts Hugo {{ relref }} shortcodes to Quartz [[wikilinks]].
  • removePredefinedAnchor: If true (default), strips predefined anchors from headings.
  • removeHugoShortcode: If true (default), removes Hugo shortcode syntax ({{}}) from the content.
  • replaceFigureWithMdImg: If true (default), replaces <figure/> with ![]().
  • replaceOrgLatex: If true (default), converts Org-mode [[Latex]] fragments to Quartz-compatible LaTeX wrapped in $ (for inline) and $$ (for block equations).

[!warning] While you can use this together with [[ObsidianFlavoredMarkdown]], it’s not recommended because it might mutate the file in unexpected ways. Use with caution.

If you use toml frontmatter, make sure to configure the [[Frontmatter]] plugin accordingly. See [[OxHugo compatibility]] for an example.

APIΒ§

πŸ“š Agora node [[roamflavoredmarkdown]] (pulled by the Agora)
πŸ“œ File docs/plugins/RoamFlavoredMarkdown.md by @matthieuG β˜† πŸ“Ž

This plugin provides support for Roam Research compatibility. See [[Roam Research Compatibility]] for more information.

[!note] For information on how to add, remove or configure plugins, see the [[Configuration]] page.

This plugin accepts the following configuration options:

  • orComponent: If true (default), converts Roam {{ or:ONE|TWO|THREE }} shortcodes into HTML Dropdown options.
  • TODOComponent: If true (default), converts Roam {{[[TODO]]}} shortcodes into HTML check boxes.
  • DONEComponent: If true (default), converts Roam {{[[DONE]]}} shortcodes into checked HTML check boxes.
  • videoComponent: If true (default), converts Roam {{[[video]]:URL}} shortcodes into embeded HTML video.
  • audioComponent: If true (default), converts Roam {{[[audio]]:URL}} shortcodes into embeded HTML audio.
  • pdfComponent: If true (default), converts Roam {{[[pdf]]:URL}} shortcodes into embeded HTML PDF viewer.
  • blockquoteComponent: If true (default), converts Roam {{[[>]]}} shortcodes into Quartz blockquotes.

APIΒ§

πŸ“š Agora node [[vim markdown]] (pulled by the Agora)
πŸ“œ File vim markdown.md by @agora@botsin.space β˜† πŸ“Ž
πŸ“œ File vim markdown.md by @an_agora@twitter.com β˜† πŸ“Ž