astro/examples/with-markdown
Fred K. Schott ff92be637f
add "astro preview" command (#1226)
* add "astro preview" command

* Update green-buttons-reflect.md

* Update cli-reference.md
2021-08-26 12:08:52 -07:00
..
public [ci] yarn format 2021-08-25 18:52:22 +00:00
src stop building, bundling, and transforming public/ files (#1210) 2021-08-25 11:51:04 -07:00
.gitignore Restructure examples (#568) 2021-06-28 10:46:10 -05:00
.npmrc Restructure examples (#568) 2021-06-28 10:46:10 -05:00
package.json add "astro preview" command (#1226) 2021-08-26 12:08:52 -07:00
README.md Docs: npm@7 requires an extra -- for arguments passed to the command, per @natemoo-re's description. (#786) 2021-07-20 20:06:11 -05:00
tsconfig.json [ci] yarn format 2021-08-13 23:32:55 +00:00

Astro Example: Markdown

npm init astro -- --template with-markdown

This example showcases Astro's built-in Markdown support.

  • src/pages/index.astro uses Astro's <Markdown> component.
  • src/pages/other.md is a treated as a page entrypoint and uses a layout.