November 2026 — newtui 2.6.0
Spoiler, Modal and CodeBlock are now accessible, translatable and themed, so the markdown item can render user content without patches.
newtui 2.6.0
-
Spoiler,ModalandCodeBlockare now accessible, translatable and themed, so themarkdownitem can render user content without patches.Spoilerhides all of its content while closed, including links, inline code, mentions and emoji images, and makes itinert, so a hidden link cannot be clicked or reached with Tab. A newlabelprop sets its accessible name, andMarkdownpasses it the newspoilerentry ofMarkdownLabels. The plain HTML flavour now needsspoiler.js, which handles the reveal by click, Enter or Space; the markup no longer carries an inlineonclick, so a spoiler copied without the script stays hidden.Modalmoves focus to its first control when it opens (or to the dialog itself when it has none), keeps Tab and Shift+Tab inside, and returns focus to the element that opened it when it closes. The HTML flavour’smodal.jsdoes the same and removes its Escape listener when the modal closes.- New tokens with light and dark values:
--newt-spoilerand--newt-spoiler-hoverfor the hidden chip, and--newt-code-bg,--newt-code-keyword,--newt-code-string,--newt-code-commentand--newt-code-functionfor the code block. They replace fixed hex values, so both parts follow a light theme and token overrides.newtui initleaves a stylesheet that already holds the tokens untouched, so an existing project adds the seven variables by hand; the values for both themes are on the colours page.
-
New
app-invitecomponent: the app directory card a link to an app unfurls into inside a message, with a cover banner, the app’s icon and name, an optional description and a full-width call to action. Available for React, Vue and HTML/CSS (newtui add app-invite).The HTML
.newt-btnno longer underlines when it is an<a>, matching the React and Vue buttons. -
markdownlays out a message the way the client does. A list item indented under another one nests, with a circle bullet and then a square one. Blank lines stay empty lines, before and after a list as well as between paragraphs, and_ _is an empty line written on purpose. A heading takes the blank lines after it, and list spacing and indentation match the client. -
Typeset now covers what a CommonMark and GFM renderer emits: task lists, footnotes, aligned table columns,
mark, definition lists,detailsandfigure, and a blockquote no longer keeps the browser’s 40px indent. It no longer installsspoiler— chat markdown with mentions, timestamps and spoilers is the Markdown component’s job.