Skip to content

Instantly share code, notes, and snippets.

@DemonQilin
DemonQilin / README.md
Created July 22, 2023 01:12
Replicate highlights

Copy and paste in the console:

localStorage.setItem('mdbook-quiz:highlights', `[{"startMeta":{"parentTagName":"P","parentIndex":8,"textOffset":0},"endMeta":{"parentTagName":"P","parentIndex":8,"textOffset":178},"text":"The code associated with each arm is an expression, and the resultant value of\\nthe expression in the matching arm is the value that gets returned for the\\nentire match expression.","id":"498e97b1-e299-4c93-ac79-075956de4376","__isHighlightSource":{},"extra":"{\\"text\\":\\"\\",\\"page\\":\\"/ch06-02-match.html\\",\\"domHash\\":\\"1b9da7f53674515d0e768aa92591bb9c\\"}"},{"startMeta":{"parentTagName":"P","parentIndex":26,"textOffset":54},"endMeta":{"parentTagName":"P","parentIndex":26,"textOffset":101},"text":"the arms’ patterns must\\ncover all possibilities","id":"5a62a9b3-e67f-4b54-b976-0e12849b8783","__isHighlightSource":{},"extra":"{\\"text\\":\\"\\",\\"page\\":\\"/ch06-02-match.html\\",\\"domHash\\":\\"e7bcee9137a2c52f169517c4ef551a3a\\"}"},{"startMeta":{"parentTagName":"P","parentI