Wikifreedia
All versions

nfm is a minimal markdown language based on a combination of asciidoc and markdown for use in nostr notes. The goal is for it to be easily human readable, while supporting basic text formatting.

  • Italic text is surrounded by single underscores, for example _italic_.
  • Bold text is surrounded by single asterisks, for example *bold*.
  • Inline monospace text is surrounded by single backtick characters.
  • Block monospace text (rendered on its own line) is surrounded by triple backticks. Syntax may be indicated using a standard language code after the first set of backticks.
  • Headings are preceded by a newline character, between 1 and 6 # characters depending on heading size, and a space.
  • Unordered list item labels are preceded by the - character and a space, for example - My list item.
  • Ordered list item labels are preceded by an alphanumeric string, a period, and a space, for example 1. My list item. Non-sequential numbers should not be re-written by the client.
  • For either type of list, as many levels of indentation as desired are denoted using two spaces per indentation level.
  • Link rendering is not supported. Instead, if an imeta tag is included on the note, clients MAY substitute the url in the content for the text attribute in the meta tag.

Other authors

No one else has published this topic yet.