When you're walking around New York City, you might easily miss an interesting detail: many manhole covers say "Made in India." Here's one of them:
You might not notice it right away. I zoomed in and rotated a section of the photo so it’s clearer:
import 'quill/dist/quill.core.css'; import 'quill/dist/quill.snow.css'; // import Quill from 'quill'; // SSR problem with 'document', need to use dynamic import import type Quill from 'quill'; const elemForQuillEditor = ref<HTMLDivElement|null>(null); let editor: null|Quill = null; // Do not store in ref() - it causes bugs! // ... async function createQuillAndSetListeners() { const Quill = (await import('quill')).default; // This is most important thing - usage of JS dynamic import if (!elemForQuillEditor.value) return; editor = new Quill(elemForQuillEditor.value, { theme: 'snow', modules: { history: { delay: 2000, maxStack: 500, userOnly: true, }, toolbar: { container: [ ['bold', 'italic', 'underline', 'strike'], ['link'], [{ list: 'ordered' }, { list: 'bullet' }], [{ script: 'sub' }, { script: 'super' }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], ['clean'], ['undo', 'redo'], ], handlers: { undo() { editor?.history.undo(); }, redo() { editor?.history.redo(); }, }, }, }, placeholder: props.placeholder, }); editor.on('text-change', () => { if (!editor) return; // ... my other code }); } // ... onMounted(createQuillAndSetListeners);
``` ts let projectName: string|null = null; projectName = 'Famabara'; ```Of course, you shouldn't start backticks-line with a space.
package main import "fmt" func main() { fmt.Println("Hello, from Go!") }
console.log(2**2**3); // 256 console.log(2**(2**3)); // 256 console.log((2**2)**3); // 65
SELECT p.id, p.title FROM posts p LIMIT 10;
> I want to eat 3 pizzas. No, don't do it! > I want to eat an apple. > And a peach. That's a good idea!
const years = [2024, 2030, 2050]; for (const year of years) { console.log(year); };It can be useful when showing some code - all spaces are saved:
<div> <div> Some text </div> <div> Other text </div> </div>