-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.json
More file actions
6 lines (6 loc) · 1.63 KB
/
Copy pathastro.json
File metadata and controls
6 lines (6 loc) · 1.63 KB
1
2
3
4
5
6
{
"section": "astro",
"original": "---\nconst title = 'Home'\n---\n<html>\n <head>\n <title>{title}</title>\n </head>\n <body>\n <h1>{title}</h1>\n </body>\n</html>\n",
"edit": "<<<<<<< SKIP\n<<<<<<< skip\n<<<<<<< Skip\n---\nimport Layout from '../layouts/Layout.astro'\n\n// inline hint '<<<<<<< SKIP' inert in js line comment\nconst title = 'Home'\nconst hint = \"the token \\\"<<<<<<< SKIP\\\" inside a string is inert\"\nconst notes = \"also <<<<<<< SKIPand <<<<<<< SKIP are inert\"\nconst curly = \"curly “hi” with <<<<<<< skip inert\"\n\tconst tabbed = \"tab indent kept as-is\"\nconst links = [\n { href: '/about', label: 'About' },\n { href: '/blog', label: 'Blog' }\n]\n---\n<Layout title={title}>\n <h1>{title}</h1>\n <p>{hint}</p>\n <!-- html comment: <<<<<<< SKIP inside is content, not a marker -->\n <nav>\n {links.map((l) => (<a href={l.href}>{l.label}</a>))}\n </nav>\n <slot />\n</Layout>\n",
"expected": "---\nimport Layout from '../layouts/Layout.astro'\n\n// inline hint '<<<<<<< SKIP' inert in js line comment\nconst title = 'Home'\nconst hint = \"the token \\\"<<<<<<< SKIP\\\" inside a string is inert\"\nconst notes = \"also <<<<<<< SKIPand <<<<<<< SKIP are inert\"\nconst curly = \"curly “hi” with <<<<<<< skip inert\"\n\tconst tabbed = \"tab indent kept as-is\"\nconst links = [\n { href: '/about', label: 'About' },\n { href: '/blog', label: 'Blog' }\n]\n---\n<Layout title={title}>\n <h1>{title}</h1>\n <p>{hint}</p>\n <!-- html comment: <<<<<<< SKIP inside is content, not a marker -->\n <nav>\n {links.map((l) => (<a href={l.href}>{l.label}</a>))}\n </nav>\n <slot />\n</Layout>\n"
}