Skip to main content

Introduction

@nofinite/markon is a lightweight content formatting library for JavaScript and React environments.
It provides a simple, rule-based syntax for converting structured text into HTML, enabling controlled formatting without the overhead of a full Markdown parser.

Markon is optimized for predictable output, minimal dependencies, and ease of integration across platforms.


Who is this for?

@nofinite/markon is designed for:

  • Developers who need simple text formatting without Markdown complexity
  • Applications rendering CMS or user-generated content
  • React and non-React environments
  • Teams that prioritize performance and deterministic formatting

Design Philosophy

Markon is built with the following goals:

  • Simplicity: Clear, minimal syntax with no ambiguity
  • Performance: Lightweight parsing with minimal overhead
  • Predictability: Consistent output for the same input
  • Framework-agnostic: Works in React and standard JavaScript
  • Control: Focused formatting features without excess

What this library is

  • A utility to transform Markon syntax into HTML
  • A solution for controlled rich text rendering
  • A predictable formatting layer in content systems
  • A foundation for UI content pipelines

What this library is not

  • A full Markdown or MDX parser
  • A rich text editor or interactive content engine
  • A layout or styling framework

Framework Compatibility

@nofinite/markon works in:

  • React applications using ReactMarkon
  • Plain HTML and JavaScript environments using JSMarkon
  • Server-rendered applications
  • Static content generation workflows

No additional configuration is required for supported environments.


Production Readiness

  • Zero external dependencies
  • TypeScript support with built-in typings
  • Deterministic and fast parsing
  • Suitable for production content workflows
  • Small bundle footprint

Next Steps

  • Continue to the Getting Started guide for installation and basic usage
  • Review the Syntax Reference for supported formatting patterns
  • Explore examples in React and vanilla JavaScript