--- title: ext/web/web description: Official web site classes (English). Tables + methods; no bag glue. import plugin:lib/plugin.mq.md import sys:lib/sys.mq.md --- ## ensure_plugin Load the ABI v2 `web` plugin once. *p = > plugin.native_path name="web"* 1. `p` > plugin.load path=`p` 2. * > print text=ext/web: native web plugin not found (build marqdo_plugin_web or marqdo ext add web) > sys.exit code=1 **** ## make_style + `name`="" + `table` Assemble a GFM style table into a CSS string. Two shapes are accepted: `|选择器|属性|值|` rule rows (arbitrary selectors; rows sharing a selector are merged, and a leading `|媒体|` column groups rows into `@media` blocks), or `|属性|值|` property rows wrapped as `.name { … }`. Styles stay as data tables, `make_style` turns them into CSS — 样式即数据、装配即函数. > ensure_plugin **> web_style name=`name` table=`table`** ## make_images + `table` Assemble a GFM image table into an HTML fragment (`div.mq-images` of `
` / ``). Columns: `src`/`alt`/`title`/`class`/ `href`/`width`/`height`/`loading`/`caption` (ZH: `源`/`替代`/`标题`/`类`/ `链接`/`宽度`/`高度`/`加载`/`图注`). Images stay as data — 图片即数据、装配即函数. > ensure_plugin **> web_images table=`table`** ## make_head + `table` Assemble a Head resource table into HTML (`` / `