Patch Changes
-
fix: XMarkdown slot created should not have prefix (#2520)
-
feat: add x-markdown support (#2412)
Add opt-in support for the
x-markdownelement on Lynx Web, including
Markdown rendering together with its related styling, interaction, animation,
truncation, range rendering, and effect capabilities exposed through the
component API.Update the
web-core,web-core-wasm, andweb-mainthread-apisruntime
paths to use the shared property-or-attribute setter fromweb-constants, so
custom elements such asx-markdowncan receive structured property values
correctly instead of being forced through string-only attribute updates.import '@lynx-js/web-elements/XMarkdown';
-
fix: x-markdown inline view injection no longer queries light DOM children when the content attribute changes. Consumers must now pre-set
slot="{id}"on the child element they want to project intoinlineview://{id}. (#2516) -
fix: list cannot drag-scroll inside x-foldview-slot-ng (#2507)
Cause:
touchstartusedelementsFromPoint(pageX, pageY)(expectsclientX/clientY), so hit-testing can miss the real inner scroller (e.g.x-listshadow#content) when the document is scrolled.Fix: use
elementsFromPoint(clientX, clientY)+event.composedPath()for Shadow DOM, and keeppreviousPageXupdated duringtouchmove. -
fix: line-height of markdown-style should be added
px(#2509) -
fix: list
bindscrolltolowermay not trigger because the lower threshold (#2484)
sentinel had no effective size or offset, causing the bottom
IntersectionObserverto miss the list boundary