Skip to main content

Crate ox_content_napi

Crate ox_content_napi 

Source
Expand description

Node.js bindings for Ox Content.

This crate provides NAPI bindings for using Ox Content from Node.js, enabling zero-copy AST transfer and JavaScript interoperability.

Structs§

JsOgImageConfig
OG image configuration for JavaScript.
JsOgImageData
OG image data for JavaScript.
JsParserOptions
Parser options for JavaScript.
JsSearchDocument
Search document for JavaScript.
JsSearchOptions
Search options for JavaScript.
JsSearchResult
Search result for JavaScript.
JsSsgConfig
SSG configuration.
JsSsgNavGroup
Navigation group for SSG.
JsSsgNavItem
Navigation item for SSG.
JsSsgPageData
Page data for SSG.
JsTransformOptions
Transform options for JavaScript.
ParseAndRenderTask
Async task for parse_and_render.
ParseResult
Parse result containing the AST as JSON.
RenderResult
Render result containing the HTML output.
TocEntry
Table of contents entry.
TransformResult
Transform result containing HTML, frontmatter, and TOC.
TransformTask
Async task for transform.

Functions§

build_search_index
Builds a search index from documents.
extract_search_content
Extracts searchable content from Markdown source.
generate_og_image_svg
Generates an OG image as SVG.
generate_ssg_html
Generates SSG HTML page with navigation and search.
parse
Parses Markdown source into an AST.
parse_and_render
Parses Markdown and renders to HTML.
parse_and_render_async
Parses Markdown and renders to HTML asynchronously (runs on worker thread).
render
Renders an AST (provided as JSON) to HTML.
search_index
Searches a serialized index.
transform
Transforms Markdown source into HTML, frontmatter, and TOC.
transform_async
Transforms Markdown source asynchronously (runs on worker thread).
version
Returns the version of ox_content_napi.