awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
commonmark avatar

commonmark/commonmark-spec

0
View on GitHub↗
commonmark.org↗

Commonmark Spec

Acest proiect este un standard formal de specificație Markdown care oferă o definiție detaliată a sintaxei de marcare și un set definitiv de reguli pentru parsarea textului brut în output HTML consistent. Stabilește o gramatică standardizată pentru blocurile structurale și elementele inline pentru a asigura o randare uniformă în diferite implementări software.

Specificația este susținută de o suită de conformitate a parserului și o implementare de referință în C și JavaScript pentru a verifica dacă implementările aderă la standard. Include un sistem pentru verificarea implementării care compară șirurile de intrare transformate cu output-ul HTML așteptat și permite exportul datelor de test ale specificației în format JSON.

Standardul acoperă o gamă largă de capabilități de structurare și formatare a conținutului, inclusiv headere, liste, block quotes și linii orizontale. Definește mecanisme pentru reprezentarea codului prin blocuri fenced sau indentate, integrarea HTML și un sistem bazat pe referințe pentru gestionarea hyperlinkurilor și imaginilor.

Specificația detaliază, de asemenea, un model de parsare în două faze care utilizează reprezentarea abstract syntax tree și normalizarea textului bazată pe Unicode pentru a menține o ierarhie predictibilă a documentului.

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Features

  • Markdown Specification Standards - Establishes the definitive set of rules for parsing plain text into consistent HTML output.
  • Formal Grammar Specifications - Defines the formal technical specifications of the markdown language syntax using algorithmic prose and unambiguous rules.
  • Markdown Parsers - Provides a formal specification and reference logic for engines that interpret markdown syntax.
  • Parser Conformance Testing - Includes a comprehensive conformance suite to validate that markdown parsers adhere strictly to the specification.
  • Markdown to HTML Renderers - Converts parsed markdown into compliant HTML output for consistent visual presentation.
  • Markup Syntax Standardization - Provides a detailed grammar specification to ensure consistent rendering across different platforms.
  • Language Standard Specifications - Serves as the authoritative formal definition of syntax and behavior for the markdown format.
  • Multi-Phase Parsing - Utilizes a two-phase parsing model to decouple structural block identification from inline text formatting.
  • Unicode Normalization - Standardizes input text by expanding tabs and normalizing characters to ensure consistent parsing and rendering.
  • Abstract Syntax Tree Parsing - Implements a structured tree representation to analyze the relationships between document elements during parsing.
  • Document Object Models - Establishes a leaf-and-container hierarchy to organize document layout and structural relationships.
  • Text Input Normalizers - Normalizes input by expanding tabs and replacing insecure Unicode characters to ensure predictable rendering.
  • Syntax Parsing Engines - Provides the engine logic to convert raw text into structured syntax trees or HTML.
  • Markup Rendering Rules - Defines the precise rules for rendering headers, lists, and code blocks to maintain document hierarchy.
  • ATX Headings - Defines document headings from levels 1 through 6 using hash characters at the start of a line.
  • Code Block Embedding - Supports the inclusion of verbatim source code segments using backtick or tilde fences with optional language labels.
  • Reference Link Registries - Implements a reference-based system for managing reusable hyperlinks and images via unique labels.
  • Setext Headings - Defines level 1 or 2 headings by underlining a line of text with equals or hyphen characters.
  • Inline HTML Integration - Identifies inline HTML tags, attributes, and comments to be rendered without escaping.
  • Semantic Line Breaks - Defines rules to determine whether newlines should be rendered as hard breaks or soft wraps in the final output.
  • Parsing Priority Rules - Prioritizes structural block elements over inline formatting to ensure consistent document layout.
  • Reference Implementations - Provides standard-compliant parsers in C and JavaScript as a model for correct implementation.
  • Syntax Escaping - Implements backslash-based escaping to treat punctuation as literal text and prevent it from being parsed as markup.
  • Block Level Parsing Rules - Standardizes the logic for identifying structural block elements like paragraphs and headings.
  • Markup Validation Suites - Includes a parser conformance suite to verify that implementations adhere to the specification.
  • Standard Compliance Certification Testing - Provides an automated verification suite to certify that parser implementations adhere to the formal specification.
  • Implementation Validation Suites - Provides a standardized test suite to verify that parser implementations are compliant with the formal specification.
  • Quote Blocks - Implements block-level elements for citations and excerpts using the greater-than symbol.
  • Inline Code Spans - Provides syntax for wrapping short fragments of literal text in backtick delimiters to prevent formatting.
  • Rich Text Styling - Standardizes the use of asterisks and underscores to create bold and italic text formatting.
  • Thematic Break Elements - Defines structural elements for thematic breaks using sequences of asterisks, underscores, or hyphens.
  • Block HTML Embedding - Recognizes raw HTML tags and comments as block-level elements that bypass standard parsing.
  • Paragraph Elements - Groups sequences of non-blank lines into structural blocks for inline element parsing.
  • Nested Lists - Supports ordered and bulleted lists with hierarchical nesting and variable indentation.
  • General Libraries - C implementation of the CommonMark specification.
  • Biblioteci de uz general - C implementation of the CommonMark specification.
  • Windows Environments - Listed in the “Windows Environments” section of the Awesome C awesome list.
5,105 stele·354 fork-uri·Python·2 vizualizări

Istoric stele

Graficul istoricului de stele pentru commonmark/commonmark-specGraficul istoricului de stele pentru commonmark/commonmark-spec

Întrebări frecvente

Ce face commonmark/commonmark-spec?

Acest proiect este un standard formal de specificație Markdown care oferă o definiție detaliată a sintaxei de marcare și un set definitiv de reguli pentru parsarea textului brut în output HTML consistent. Stabilește o gramatică standardizată pentru blocurile structurale și elementele inline pentru a asigura o randare uniformă în diferite implementări software.

Care sunt principalele funcționalități ale commonmark/commonmark-spec?

Principalele funcționalități ale commonmark/commonmark-spec sunt: Markdown Specification Standards, Formal Grammar Specifications, Markdown Parsers, Parser Conformance Testing, Markdown to HTML Renderers, Markup Syntax Standardization, Language Standard Specifications, Multi-Phase Parsing.

Care sunt câteva alternative open-source pentru commonmark/commonmark-spec?

Alternativele open-source pentru commonmark/commonmark-spec includ: jgm/commonmark — CommonMark is a formal standard specification for Markdown, providing a reference implementation and a set of rules to… whatwg/html — This repository contains the HTML specification, which defines the core standards for web page structuring, content… commonmark/commonmark.js — Commonmark.js is a library designed to parse and render text formatted according to the CommonMark specification. It… lunet-io/markdig — Markdig is a high-performance Markdown processor for .NET applications that converts Markdown text into HTML or other… xoofx/markdig — Markdig is a markdown parser library that converts text into structured HTML, plain text, or other formats using a… cloudwu/pbc — A protocol buffers library for C.

Alternative open-source pentru Commonmark Spec

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Commonmark Spec.
  • jgm/commonmarkAvatar jgm

    jgm/CommonMark

    5,106Vezi pe GitHub↗

    CommonMark is a formal standard specification for Markdown, providing a reference implementation and a set of rules to ensure consistent text rendering across different platforms. It consists of a Markdown parser implementation and a system for generating formal syntax documentation. The project includes a comprehensive conformance test suite with over five hundred embedded examples to verify that other Markdown implementations adhere to the specification. It provides tools to export these test cases in JSON format for use in external verification processes. The system covers document format

    Python
    Vezi pe GitHub↗5,106
  • whatwg/htmlAvatar whatwg

    whatwg/html

    9,163Vezi pe GitHub↗

    This repository contains the HTML specification, which defines the core standards for web page structuring, content organization, and document rendering. It establishes the fundamental algorithms for state-machine-based tokenization, tree construction for the document object model, and origin-based security isolation. The specification provides a framework for defining custom elements with independent lifecycles and registries. It also details the requirements for cross-document communication, session history management, and the synchronization of interface properties with content attributes.

    HTMLcanvaseventsourcehtml
    Vezi pe GitHub↗9,163
  • commonmark/commonmark.jsAvatar commonmark

    commonmark/commonmark.js

    1,559Vezi pe GitHub↗

    Commonmark.js is a library designed to parse and render text formatted according to the CommonMark specification. It functions as a document processing pipeline that converts plain text into structured HTML or an abstract syntax tree, enabling developers to programmatically inspect, modify, and transform document elements. The library distinguishes itself through its strict adherence to standardized parsing rules, ensuring consistent and predictable output across different software environments. It provides a robust framework for document tree manipulation, allowing users to traverse, insert,

    JavaScript
    Vezi pe GitHub↗1,559
  • lunet-io/markdigAvatar lunet-io

    lunet-io/markdig

    5,257Vezi pe GitHub↗

    Markdig is a high-performance Markdown processor for .NET applications that converts Markdown text into HTML or other target formats. It is a CommonMark compliant parser and extensible engine that can transform Markdown into a searchable and manipulatable abstract syntax tree. The library provides a framework for adding custom syntax and rendering logic through a modular pipeline of parsers and renderers. It supports native ahead-of-time compilation and trimming to minimize binary size. Capabilities include the generation of structured HTML with custom attributes and styling, the extraction

    C#
    Vezi pe GitHub↗5,257
  • Vezi toate cele 30 alternative pentru Commonmark Spec→