<output> element has a for= attribute indicating which <input> elements it is linked to and a form= attribute indicating which form it belongs to. This works well with screen readers. A good reason to use it more. Examples. #html#html#code-agents #dev #future #github #html #markdown #prompt-engineeringconst branch = await $`git branch --show-current`;
await $`dep deploy --branch=${branch}`;
selectolax is a fast, easy-to-use, modern HTML5 parser with CSS selectors. A good replacement for lxml.html. #htmluvx markitdown https://example.com/ fetches example.com as Markdown. I learnt this when I told Codex it could use uvx markitdown to convert PDFs and it figured this part out by itself. #document-conversion #html #markdownuvx tldr jq. cheat.sh offers detailed examples, e.g. curl cheat.sh/jq or curl cheat.sh/:help. #html #markdownhurl is a CLI config-based HTTP automation tool. Useful for tests, bulk (templatized) HTTP requests, etc. #github #html #prompt-engineering<script> tag in XML to render RSS, as an alternative to XSLT. Jake Archibald #htmlinsertAdjacentHTML is a great API but suffers from XSS vulnerabilities. The TrustedHTML API is an emerging standard to create sanitized HTML strings. #html#html #darker-color {
background-color: oklch(from var(--base-color) calc(l - 0.15) c h);
}
#html #web-dev:abbr[MD]{#id .class title="Markdown"} for inline directives. Plugins exist for marked, markdown-it and remark. #html #markdown#document-conversion #html #markdown #web-dev#html#html #markdownxh is curl-compatible but adds JSON pretty‑print, colour, --table and can pass parameters like xh post :8000/api question='When is the ROE?' #html #markdownattr() is one of the most powerful features in modern CSS. It lets you control CSS via HTML attributes. #html#github #html #markdown#ai-coding #code-agents #dev #github #html #markdown #prompt-engineering#github #html #llm-ops #web-dev#html.stretched-link that makes a link cover the containing block. A clever trick that I discovered when Claude 3.5 Sonnet wrote my code. #htmlcat file.md | pandoc -f markdown -t html). My favorites: #document-conversion #html #markdown--no-highlight skips code-highlighting. --highlight=pygments adds Pygments styling--wrap=none doesn't wrap the content in a single block--number-sections adds section numbering (<h2>1. Introduction</h2>)--shift-heading-level-by=NUM – shift all headings by NUM levels (e.g., start at <h2> instead of <h1>)pandoc -f markdown-auto_identifiers drops the auto-identifiers extension that generates id=... for each headingpandoc -f gfm uses GitHub flavored Markdown. Run pandoc --list-extensions=gfm to identify the extensions it uses.alerts: GitHub-style callouts (info, tip, warning) via > [!TYPE] blocks.autolink_bare_uris: Turns bare URLs into links, without needing <...>.emoji: Parses :smile:-style codes into Unicode emoji characters.footnotes: Enables footnote syntax with [^id] and definitions at the bottom.gfm_auto_identifiers: Uses GitHub’s heading-ID algorithm: spaces → dashes, lowercase, removes punctuation.pipe_tables: Enables table.raw_html: Raw HTML is unchanged.strikeout: Enables strikethrough with ~~text~~.task_lists: Parses - [ ] and - [x] items as checkboxes.yaml_metadata_block: YAML front matter for document metadata, e.g. <title>ascii_identifiers: Strips accents/non-Latin letters in automatically generated IDs.bracketed_spans: [Warning]{.alert} becomes <span class="alert">definition_lists: Term\n: Definition text becomes a definition listfenced_divs: ::: {.note} block creates a <div class="note">...</div>implicit_figures: Standalone images become <figure> with <figcaption>.implicit_header_references: [Section] is treated as [Section][#section]raw_attribute: <b>bold</b>{=html} is inserted as HTMLsmart: Converts straight quotes to curly, -- to en-dash, --- to em-dash, ... to ellipsis.subscript & superscript: E.g. H~2~O and E = mc^2^#document-conversion #html#github #html #markdown #write#automation #code-agents #future #html #llm-ops #markdown #prompt-engineering #web-dev #write #ai-coding#document-conversion #html #markdown #write#ai-art #html<select> will soon be very customizable via CSS. Including custom HTML inside options - even SVG. MDN. Edge/Chrome already support it. #future #html#html #speech-to-text #web-dev#document-conversion #html #markdown#ai-coding #code-agents #dev #github #html #markdown #prompt-engineering #web-dev#html #markdown#document-conversion #html #web-devjq for HTML. #github #html #markdown #prompt-engineering #web-dev#cloud #html #server #web-dev#htmllatexmlmath converts TeX to MathML.m|math { font-family: "Noto Sans Math", "Noto Sans" } is a popular OpenType Math font. Browsers default to native fonts: e.g. Cambria Math on windows. Explore at https://fred-wang.github.io/MathFonts/.#document-conversion #html #markdown #web-dev#future #html #prompt-engineering#ai-coding #automation #code-agents #html #optimization #prompt-engineering #web-devgid to each element.#code-agents #html #markdown #prompt-engineering<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script><script>document.body.innerHTML = marked(document.body.textContent);</script>. Use for dynamically generated static sites.?format=markdown vs ?format=html vs ?format=json. Use in APIs.Accept header, serve Markdown or HTML. Send Vary: Accept to indicate that the response depends on the Accept header. Use for dynamic web apps.#github #html #markdown#html #web-dev #write#chatgpt #cloud #github #hosting #html #server #web-dev#html #llm-ops #markdown#html #web-dev#ai-coding #code-agents #document-conversion #html #llm-ops#document-conversion #github #html #markdown#future #html #speech-to-text#github #html #web-dev#html #markdown #web-dev#html #web-devconsole.llm() function, a browser extension is the best way, because some pages have Content-Security-Policy that block eval, form submission, fetch from other domains, and script execution. #html #llm-ops#html#html<link rel="modulepreload"> lets you load and compile modules early! #future #html #prompt-engineering#document-conversion #html #markdown#future #html #web-dev#future #html #prompt-engineering #web-dev#future #html #markdown #web-dev#github #html #web-dev