RepositoryHTMLCZSéc
jirutka

jirutka/asciidoctor-html5s

Semantic HTML5 converter (backend) for Asciidoctor

96sao
11fork
12issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: asciidoctor-backend

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: asciidoctor-converter

#1 Repository của tháng

2
TINIX TRENDING·Chủ đề: asciidoctor

#2 Repository của tháng

📄 asciidoctor-html5s — Backend HTML5 ngữ nghĩa cho Asciidoctor

Chuyển đổi AsciiDoc thành HTML5 sạch, có ngữ nghĩa, tuân thủ chuẩn truy cập — không rác, không phụ thuộc CSS framework.

asciidoctor-html5s là một backend (converter) cho Asciidoctor, được viết bởi Jakub Jirutka. Thay vì xuất HTML mặc định của Asciidoctor (thường chứa nhiều thẻ div, class tự sinh, cấu trúc ít ngữ nghĩa), backend này sinh ra HTML5 thuần túy, dùng đúng các thẻ <article>, <section>, <nav>, <aside>, <figure>, <figcaption>, <header>, <footer>… phù hợp với văn bản kỹ thuật, tài liệu, sách, bài blog. Dự án nhấn mạnh semantics (ngữ nghĩa) và accessibility (khả năng truy cập) — output sẵn sàng cho screen reader, SEO, và dễ style bằng CSS tùy ý mà không phải ghi đè class mặc định.

✨ Điểm nổi bật

  • HTML5 ngữ nghĩa thuần túy: xuất thẻ <section>, <article>, <nav>, <aside>, <figure>, <figcaption>… thay vì div/class soup.
  • Tuân thủ khả năng truy cập (a11y): cấu trúc heading đúng cấp độ, landmark roles, alt text cho hình ảnh, bảng có caption/summary.
  • Không phụ thuộc CSS framework: output sạch, không chèn class Bootstrap/Tailwind, tự do style theo ý muốn.
  • Hỗ trợ đầy đủ AsciiDoc: admonitions, callouts, tables, footnotes, cross-references, include, diagram (kroki/plantuml), math (MathJax/KaTeX).
  • Tùy biến qua template Slim: dùng ngôn ngữ template Slim (Ruby) để override từng phần HTML nếu cần.
  • Plugin Asciidoctor chuẩn: cài gem asciidoctor-html5s và dùng -b html5s hoặc backend: html5s trong API.
  • Nhẹ, không runtime JS: chỉ là backend Ruby, không cần Node, webpack, hay build step phức tạp.
  • Tương thích Asciidoctor 2.x: cập nhật thường xuyên theo upstream.

💡 Vì sao đáng chú ý

Nhiều dự án docs dùng Asciidoctor nhưng output HTML mặc định khó style, kém ngữ nghĩa, gây vướng mắc cho SEO và screen reader. asciidoctor-html5s giải quyết triệt để: output HTML5 chuẩn W3C, heading outline đúng, landmark đầy đủ, table/figure có caption — mọi thứ "just works" khi đưa vào static site generator (Jekyll, Hugo, VitePress, Astro…) hoặc deploy thẳng lên Netlify/GitHub Pages. Nếu bạn viết tài liệu kỹ thuật, sách, spec, RFC bằng AsciiDoc và quan tâm đến chất lượng HTML đầu ra, backend này là lựa chọn hợp lý thay cho backend built-in.


#Asciidoctor #AsciiDoc #HTML5 #SemanticHTML #Accessibility #Documentation #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJava
markdown-asciidoc/markdown-to-asciidoc

Java Library to convert Markdown to AsciiDoc

87
Mar 27, 2026
RepositoryHTML
asciidoctor/asciidoctor-reveal.js

:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!

314
Nov 9, 2026
RepositoryRuby
asciidoctor/asciidoctor

:gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.

5.2k
Nov 28, 2026
RepositoryRuby
asciidoctor/asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.

1.2k
Nov 28, 2026
RepositoryJava
jbake-org/jbake

Java based open source static site/blog generator for developers & designers.

1.2k
Dec 30, 2025
RepositoryJavaScript
asciidoctor/asciidoctor.js

:scroll: A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc

807
Nov 17, 2026
RepositoryJavaScript
ggrossetie/asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies

493
Oct 1, 2026
RepositoryLua
brianhuster/live-preview.nvim

A Live Preview Plugin for Neovim that allows you to view Markdown, HTML (along with CSS, JavaScript), AsciiDoc, SVG files in a web browser with live updates.

451
Oct 25, 2026
RepositoryJava
asciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

393
Nov 26, 2026