• MARKDOWN kludge

    From Matthew Asham@1:153/150 to All on Fri Feb 27 09:39:07 2026
    Hi All,

    Wanted to run this by you for feedback. I've recently added markdown support for LovlyNet - a dedicated FTN for BinktermPHP nodes.

    It basically works like this:

    - When posting to a network that has markdown enabled a new MARKDOWN kludge is added.

    - When the MARKDOWN kludge is seen, the message reader renders the markdown.

    It's pretty basic and is an attempt to provide richer text formatting in echo and netmail.

    Below is a specification proposal.

    Would appreciate feedback on this idea.

    Thanks

    Matthew


    **********************************************************************
    LOVLYNET STANDARDS COMMITTEE DOCUMENT LSC-001

    Document: LSC-001
    Title: MARKDOWN Kludge for FidoNet-Compatible Echomail and Netmail
    Author: LovlyNet Standards Committee
    Date: 2026-02-27
    Status: Proposed Standard **********************************************************************


    1. INTRODUCTION
    ---------------

    This document defines the MARKDOWN kludge line for use in FidoNet-
    compatible echomail and netmail messages. Its purpose is to indicate
    that the body of a message is formatted using Markdown syntax, allowing
    capable reader software to render the message with appropriate
    formatting while remaining fully readable by legacy software that does
    not support this kludge.

    Markdown was chosen specifically because it degrades gracefully in
    plain-text environments. Markup conventions such as **bold**, # headings,
    and - list items are intuitive and legible even when rendered as
    literal characters, making this kludge safe for use in mixed
    environments where not all nodes or readers support it.


    2. DEFINITIONS
    --------------

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
    document are to be interpreted as described in FTA-1006.

    "Kludge line": A line in a FidoNet message body beginning with the
    ASCII SOH character (0x01), used to carry machine-readable metadata
    not intended for direct display to the end user.

    "Markdown": The lightweight markup language as described in CommonMark Specification 0.31.2 (https://spec.commonmark.org/), which serves as
    the reference standard for this proposal.


    3. THE MARKDOWN KLUDGE
    -----------------------

    3.1 Syntax

    The MARKDOWN kludge line has the following syntax:

    ^AMARKDOWN: <version>

    where ^A represents the ASCII SOH character (0x01), and <version> is
    a positive integer indicating the version of this specification the
    message author intended to conform to.

    Example:

    ^AMARKDOWN: 1

    3.2 Placement

    The MARKDOWN kludge line SHOULD be placed with other kludge lines at
    the beginning of the message body, before any visible text content,
    in accordance with common FidoNet kludge conventions.

    3.3 Version Number

    This document defines version 1. The version number is provided to
    allow for future revisions to this specification. Software encountering
    a version number higher than it supports SHOULD still attempt to render
    the message body as Markdown, falling back to plain text display if
    rendering fails or is not supported.


    4. BEHAVIOR OF CONFORMING SOFTWARE
    ------------------------------------

    4.1 Message Authors and Editors

    A message editor that supports Markdown composition MAY insert the
    MARKDOWN kludge line when the user composes a message in Markdown
    format. It SHOULD NOT insert the kludge unless the message body
    actually contains Markdown-formatted content.

    4.2 Message Readers

    A message reader that encounters the MARKDOWN kludge:

    - SHOULD render the message body as Markdown rather than plain text.
    - SHOULD support at minimum the CommonMark core feature set including
    headings, bold, italic, inline code, code blocks, blockquotes,
    unordered lists, ordered lists, and hyperlinks.
    - MAY support extended Markdown features such as tables (GFM-style)
    and strikethrough at the implementor's discretion.
    - SHOULD provide a way for the user to view the raw Markdown source
    if desired.

    4.3 Legacy Software

    Software that does not recognize the MARKDOWN kludge MUST ignore it,
    as per standard FidoNet kludge handling rules. The message body will
    be displayed as plain text. Because Markdown is designed to be human-
    readable in its raw form, this is an acceptable fallback and authors
    SHOULD write their Markdown content with this in mind.

    4.4 Tosser and Packer Behavior

    Tossers, packers, and other mail-handling software MUST NOT alter,
    strip, or otherwise modify the MARKDOWN kludge line during normal
    message handling. The kludge MUST be preserved through the normal
    FidoNet message routing process.


    5. RECOMMENDATIONS FOR AUTHORS
    --------------------------------

    Authors composing Markdown messages for FidoNet distribution SHOULD
    be mindful that many recipients may be reading in plain text. The
    following guidelines are recommended:

    - Prefer Markdown constructs that degrade naturally (e.g., **bold**
    reads clearly as emphasis even unrendered).
    - Avoid complex nested structures that may appear cluttered in plain
    text.
    - Use code blocks for technical content, as the indentation remains
    meaningful in plain text.
    - Avoid inline HTML, which does not degrade gracefully and may
    be stripped or mangled by some software.
    - Keep line lengths reasonable (72-80 characters) in accordance
    with traditional FidoNet message formatting conventions. Note that
    Markdown treats single newlines within a paragraph as spaces, so
    hard-wrapped paragraphs will render correctly.


    6. SECURITY CONSIDERATIONS
    ----------------------------

    Markdown rendering software MUST NOT render inline HTML contained
    within Markdown messages, or MUST sanitize it thoroughly before
    display. FidoNet messages originate from a wide variety of sources
    and inline HTML could be used to inject malicious content into
    web-based or GUI readers.

    Software rendering Markdown SHOULD sanitize hyperlink URLs and MUST
    NOT automatically fetch remote resources (images, stylesheets, etc.)
    without explicit user consent, in order to protect user privacy and
    avoid unexpected network activity.


    7. IMPLEMENTATION NOTES
    ------------------------

    The MARKDOWN kludge is currently implemented in BinktermPHP, a web-
    based FidoNet-compatible BBS system, and is used within the LovlyNet
    amateur FidoNet-compatible network. Implementors wishing to add support
    are encouraged to contact the LovlyNet administrators for coordination.

    The CommonMark reference implementation and specification are available
    at https://spec.commonmark.org/ and provide a solid basis for
    conformant rendering.


    8. REFERENCES
    --------------

    [1] FTS-0001 - A Basic FidoNet(r) Technical Standard
    [2] FTS-0009 - The MSGID and REPLY kludges
    [3] FTS-5003 - Character set kludge (CHRS/CHARSET)
    [4] FTA-1006 - Key words to indicate requirement levels
    [5] CommonMark Specification 0.31.2
    https://spec.commonmark.org/


    9. REVISION HISTORY
    --------------------

    2026-02-27 Initial proposal, LSC-001 version 1.


    **********************************************************************
    END OF DOCUMENT LSC-001 **********************************************************************

    ... On a clear disk you can seek forever

    --- BinktermPHP v1.8.3
    * Origin: Claude's BBS - https://claudes.lovelybits.org (1:153/150)
  • From Carlos Navarro@2:341/234.1 to Matthew Asham on Sun Mar 1 20:28:07 2026
    27 Feb 2026 09:39, you wrote to All:

    Wanted to run this by you for feedback. I've recently added markdown support for LovlyNet - a dedicated FTN for BinktermPHP nodes.

    [...]

    Would appreciate feedback on this idea.

    My 2c: in case of something like that being implemented, could it be better to use a more general kludge, such as MARKUP?

    ^aMARKUP: Markdown 1.0

    That would allow for specifying other formats, like BBCode, Gemtext, etc.

    Carlos

    --- GoldED+/W32-MSVC 1.1.5-b20180707
    * Origin: cyberiada (2:341/234.1)
  • From Matthew Asham@1:153/150 to Carlos Navarro on Sun Mar 1 13:40:29 2026

    My 2c: in case of something like that being implemented, could it be better to use a more general kludge, such as MARKUP?
    ^aMARKUP: Markdown 1.0
    That would allow for specifying other formats, like BBCode, Gemtext, etc.

    This makes more sense to me.


    I've done up a second draft based on this this feedback.


    1. INTRODUCTION
    ---------------

    This document defines the MARKUP kludge line for use in FidoNet-
    compatible echomail and netmail messages. Its purpose is to indicate
    that the body of a message is formatted using a named markup syntax,
    allowing capable reader software to render the message with appropriate formatting while remaining fully readable by legacy software that does
    not support this kludge.

    Unlike a Markdown-specific kludge, MARKUP provides a general mechanism
    for identifying the body format of a message. This allows the same
    extension point to be used for Markdown, BBCode, Gemtext, and other
    formats without requiring a new kludge definition for each syntax.


    2. DEFINITIONS
    --------------

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
    document are to be interpreted as described in FTA-1006.

    "Kludge line": A line in a FidoNet message body beginning with the
    ASCII SOH character (0x01), used to carry machine-readable metadata
    not intended for direct display to the end user.

    "Markup syntax": A textual formatting language used within the visible
    message body to express structure or presentation, such as Markdown,
    BBCode, or Gemtext.


    3. THE MARKUP KLUDGE
    --------------------

    3.1 Syntax

    The MARKUP kludge line has the following syntax:

    ^AMARKUP: <format> <version>

    where ^A represents the ASCII SOH character (0x01), <format> is a
    registered or otherwise well-known markup format identifier, and
    <version> is a format version string meaningful within that format.

    Examples:

    ^AMARKUP: Markdown 1.0
    ^AMARKUP: BBCode 1.0
    ^AMARKUP: Gemtext 1.0

    3.2 Placement

    The MARKUP kludge line SHOULD be placed with other kludge lines at
    the beginning of the message body, before any visible text content,
    in accordance with common FidoNet kludge conventions.

    3.3 Format Identifier

    The format identifier MUST be a single token and SHOULD use a stable,
    widely recognized name for the markup syntax. Implementations SHOULD
    treat format identifiers case-insensitively for matching purposes,
    though they MAY preserve the original casing for display or logging.

    3.4 Version String

    The version string MUST follow the format identifier and SHOULD be
    included whenever the syntax has meaningful version distinctions. Implementations MAY treat the version as an opaque string. Software
    that recognizes a format but not its declared version SHOULD fall back
    to best-effort rendering or plain text display.


    4. BEHAVIOR OF CONFORMING SOFTWARE
    ----------------------------------

    4.1 Message Authors and Editors

    A message editor that supports composition in a named markup syntax
    MAY insert the MARKUP kludge line when the user composes a message in
    that format. It SHOULD NOT insert the kludge unless the message body
    actually contains content intended for that markup syntax.

    4.2 Message Readers

    A message reader that encounters the MARKUP kludge:

    - SHOULD inspect the declared format identifier before attempting
    rendering.
    - MAY render the body according to the declared format if that
    format is supported.
    - SHOULD provide plain text display when the declared format is not
    supported, not recognized, or cannot be safely rendered.
    - SHOULD provide a way for the user to view the raw source if
    desired.

    4.3 Unknown or Unsupported Formats

    Software that does not recognize the declared markup format MUST
    ignore the semantic meaning of the kludge and display the message body
    as plain text. The original body content MUST be preserved unchanged.

    4.4 Tosser and Packer Behavior

    Tossers, packers, and other mail-handling software MUST NOT alter,
    strip, or otherwise modify the MARKUP kludge line during normal
    message handling. The kludge MUST be preserved through the normal
    FidoNet message routing process.


    5. FORMAT-SPECIFIC GUIDANCE
    ---------------------------

    This document defines only the transport-level declaration mechanism.
    It does not standardize the parsing rules of any specific markup
    syntax.

    Implementors supporting a given format SHOULD document which variant
    they support. For example:

    - Markdown implementations SHOULD identify which dialect or baseline
    they follow, such as CommonMark.
    - BBCode implementations SHOULD document which tags are supported.
    - Gemtext implementations SHOULD follow Gemtext line-oriented rules.

    When possible, authors SHOULD choose markup syntaxes that degrade
    gracefully in plain-text environments, since many FidoNet-compatible
    systems may display the raw message body without rendering.


    6. SECURITY CONSIDERATIONS
    --------------------------

    Rendering software MUST treat the declared markup format as untrusted
    input. Implementations SHOULD sanitize or restrict active content,
    embedded HTML, unsafe URLs, and any construct that could execute code,
    load remote resources, or mislead the user interface.

    Software rendering marked-up messages MUST NOT automatically fetch
    remote resources without explicit user consent, in order to protect
    user privacy and avoid unexpected network activity.


    7. IMPLEMENTATION NOTES
    -----------------------

    The MARKUP kludge is intended as a general extension mechanism for FidoNet-compatible software. A given implementation MAY support only
    a subset of markup syntaxes and still conform to this specification,
    provided unsupported formats are safely treated as plain text.

    An implementation that currently supports only Markdown may still emit:

    ^AMARKUP: Markdown 1.0

    This preserves forward compatibility with other markup syntaxes while
    allowing immediate use for Markdown-aware readers.


    8. REFERENCES
    -------------

    [1] FTS-0001 - A Basic FidoNet(r) Technical Standard
    [2] FTS-0009 - The MSGID and REPLY kludges
    [3] FTS-5003 - Character set kludge (CHRS/CHARSET)
    [4] FTA-1006 - Key words to indicate requirement levels
    [5] CommonMark Specification
    https://spec.commonmark.org/


    9. REVISION HISTORY
    -------------------

    2026-02-27 Initial proposal for a Markdown-specific kludge.
    2026-03-01 Revised proposal to use the general MARKUP kludge.

    ... Back Up My Hard Drive? I Can't Find The Reverse Switch!

    --- BinktermPHP v1.8.5
    * Origin: Claude's BBS - https://claudes.lovelybits.org (1:153/150)
  • From Rob Swindell@1:103/705 to Matthew Asham on Mon Mar 2 01:06:36 2026
    Re: Re: MARKDOWN kludge
    By: Matthew Asham to Carlos Navarro on Sun Mar 01 2026 01:40 pm


    My 2c: in case of something like that being implemented, could it be better to use a more general kludge, such as MARKUP?
    ^aMARKUP: Markdown 1.0
    That would allow for specifying other formats, like BBCode, Gemtext, etc.

    This makes more sense to me.


    I've done up a second draft based on this this feedback.


    1. INTRODUCTION
    ---------------

    This document defines the MARKUP kludge line for use in FidoNet-
    compatible echomail and netmail messages. Its purpose is to indicate
    that the body of a message is formatted using a named markup syntax, allowing capable reader software to render the message with appropriate formatting while remaining fully readable by legacy software that does
    not support this kludge.

    Unlike a Markdown-specific kludge, MARKUP provides a general mechanism
    for identifying the body format of a message. This allows the same
    extension point to be used for Markdown, BBCode, Gemtext, and other
    formats without requiring a new kludge definition for each syntax.


    2. DEFINITIONS
    --------------

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in FTA-1006.

    "Kludge line": A line in a FidoNet message body beginning with the
    ASCII SOH character (0x01), used to carry machine-readable metadata
    not intended for direct display to the end user.

    "Markup syntax": A textual formatting language used within the visible message body to express structure or presentation, such as Markdown,
    BBCode, or Gemtext.


    3. THE MARKUP KLUDGE
    --------------------

    3.1 Syntax

    The MARKUP kludge line has the following syntax:

    ^AMARKUP: <format> <version>

    where ^A represents the ASCII SOH character (0x01), <format> is a
    registered or otherwise well-known markup format identifier, and
    <version> is a format version string meaningful within that format.

    Examples:

    ^AMARKUP: Markdown 1.0
    ^AMARKUP: BBCode 1.0
    ^AMARKUP: Gemtext 1.0

    There's the Synchronet-supported message markup format too: https://wiki.synchro.net/ref:markup
    --
    Rob Swindell
    FTSC Standing Member
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Matthew Asham@1:153/150 to Rob Swindell on Mon Mar 2 05:14:49 2026

    3. THE MARKUP KLUDGE
    --------------------

    3.1 Syntax

    The MARKUP kludge line has the following syntax:

    ^AMARKUP: <format> <version>

    where ^A represents the ASCII SOH character (0x01), <format> is a
    registered or otherwise well-known markup format identifier, and
    <version> is a format version string meaningful within that format.

    Examples:

    ^AMARKUP: Markdown 1.0
    ^AMARKUP: BBCode 1.0
    ^AMARKUP: Gemtext 1.0

    There's the Synchronet-supported message markup format too: https://wiki.synchro.net/ref:markup

    Thanks for that!

    I've added "StyleCodes" as the format name to Section 5. I figure this is the most appropriate because it appears to have come from GoldEd initially.

    Examples:

    ^AMARKUP: Markdown 1.0
    ^AMARKUP: BBCode 1.0
    ^AMARKUP: Gemtext 1.0
    ^AMARKUP: StyleCodes 1.0

    Matthew

    ... OS/2 VirusScan - "Windows found: Remove it? [Y/y]"

    --- BinktermPHP v1.8.5
    * Origin: Claude's BBS - https://claudes.lovelybits.org (1:153/150)