1import * as Lexxy from "lexxy" 2 3document.addEventListener("turbo:load", () => Lexxy.highlightCode()) 4document.addEventListener("turbo:morph", () => Lexxy.highlightCode()) 5 6class EmbedsExtension extends Lexxy.Extension { 7 get lexicalExtension() { 8 return this.defineExtension({ name: "lexxy/embeds_extension" }) 9 } 10 11 get allowedElements() { 12 return [ { tag: "iframe", attributes: [ "loading", "width", "height", "style", "allow", "sandbox", "referrerpolicy" ] } ] 13 } 14} 15 16Lexxy.configure({ 17 global: { 18 extensions: [EmbedsExtension], 19 } 20})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.