Jonathan Neal
5d2ea57841
Remove unused namespace redirection from the astro parser ( #1245 )
...
* nit: remove unused namespace checking from astro parser
* test: add tests for namespaced attributes, including one removed attribute
* add changeset
2021-08-27 10:43:58 -04:00
Matthew Phillips
cd2b5df49c
Allow triple-dashes in markdown ( #938 )
...
* Allow triple-dashes in markdown
* Changeset
* Remove the .only
2021-07-29 16:20:49 -04:00
Tony Sullivan
294a656ed9
Introduce <style global>
( #824 )
...
* Adding support for multiple <style> blocks
* Adding support for `<style global>`
* scoping @keyframes should also be skipped for <style global>
* Adding test coverage for muliple style blocks, global blocks, and scoped keyframes
* docs: Updating docs for `<style global>` support
* Adding yarn changeset
* Punctuation fix in styling docs
* docs: Clarifying example use cases given in the docs
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-07-23 13:51:27 -04:00
Matthew Phillips
b85e68a713
Handle custom elements in nested JSX ( #792 )
...
* Handle custom elements in nested JSX
* Adds a changeset
2021-07-21 10:22:39 -04:00
Fred K. Schott
fcfc625331
Revert "fix(parser): html entities evaluated ( #738 )"
...
This reverts commit 268186c27d
.
2021-07-20 13:37:18 -07:00
Carter Snook
268186c27d
fix(parser): html entities evaluated ( #738 )
2021-07-20 12:18:42 -07:00
Carter Snook
b8a90b1e7d
feat(parser): remove trim utils ( #728 )
2021-07-17 15:39:11 -04:00
natemoo-re
1bbe98ae54
[ci] yarn format
2021-07-07 20:10:09 +00:00
Matthew Phillips
6a660f1b08
Implements low-level custom element support ( #587 )
...
* Implements low-level custom element support
* Changes based on self review
* Adds a changeset
* Polyfills are added even when not hydrating
* Remove hydrationMethod option
Punting on this idea until it's really needed.
2021-07-01 08:42:07 -04:00
Nate Moore
47ac2ccd17
Fix {...spread}
props ( #522 )
...
* fix(#521 ): allow spread props
* chore: add spread prop tests
* fix: falsy expressions should only be skipped in 'Expression' case
* fix: support primitives in expressions (objects, arrays)
2021-06-24 17:41:10 -05:00
Drew Powers
7f8d5869c3
Fix parser error on forward slash ( #469 )
...
Fixes #407
2021-06-16 13:26:38 -06:00
Nate Moore
490f2bebbc
Add <>
fragment support for expressions ( #433 )
...
* feat: add support for `<>` and `</>` Fragments
* docs: explain Fragments
* test: add fragment test
2021-06-15 11:33:27 -05:00
Matthew Phillips
6de740d62f
Fix starter template's Tour component ( #290 )
...
* Fix starter template's Tour component
This component had an extra backtick and also didn't import the Markdown component.
* Add a changeset
2021-06-02 13:50:16 -04:00
Drew Powers
d2330a5825
Improve “file not found” error display ( #288 )
2021-06-02 09:53:24 -06:00
natemoo-re
5fa7e354b3
[ci] yarn format
2021-05-26 18:31:27 +00:00
natemoo-re
8b6b41eb85
[ci] yarn format
2021-05-21 20:53:47 +00:00
Nate Moore
9cdada0bcc
Markdown issue cleanup ( #224 )
...
* fix: markdown issues
* chore: add changeset
* chore: add missing dep
* perf: parallelize compileHtml for children
2021-05-21 15:52:20 -05:00
natemoo-re
a2ae7018ca
[ci] yarn format
2021-05-17 14:30:21 +00:00
Nate Moore
b3886c206f
Fix markdown issues ( #208 )
...
* Init fix/markdown
* Astro Markdown (#207 )
* Add Astro Markdown to VSCode Extension
* Add Astro Markdown to Astro
* refactor: update astro-markdown example
* feat: remove embedded components from `.md` files
* fix: resolve `.md.astro` files at runtime
* chore: update markdown tests
* feat: add <Markdown> component
* chore: bump examples
* chore: update example
* fix: improve Markdown child handling
* feat: harden markdown support, add code fence support, add automatic dedenting
* chore: add weird markdown edge cases
* chore: update remote-markdown examples
* chore: add comment to Markdown.astro
* feat: improve markdown support (codefences, nested inside HTML)
* refactor: extract import specifier types to set
* refactor: conditionally import markdown renderer
* refactor: revert special-cased "astro/components"
* refactor: revert special-cased "astro/components"
* refactor: use astro/components/Markdown.astro
* refactor: remove `.md.astro` support in favor of Markdown component
* refactor: use regular .astro files
* refactor: remove unused code
* refactor: move Markdown inside Layout
* wip: markdown scoped styles
* feat: improve scoped styles in Markdown
* feat: micromark => remark ecosystem
* fix: markdown build
* fix: markdown build
* chore: add todo
* fix: collect headers text
* docs: add Markdown doc
* chore: add changeset
* docs: improve Markdown highlighting
* refactor: prefer Set
* refactor: exclude large unified deps
* docs: update markdown docs
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
* chore: remove extra markdown deps
* perf: optimize markdown
* fix: unified/rehype deps
* temp: fix markdown test
* test: add TODO comment
* fix: do not namespace frontmatter, just astro metadata
* test: fix astro-markdown test
* test: add realworld markdown example
* fix: prism language bug
* docs: update markdown docs
* chore: bump dependencies
* fix: escape codespan
* fix: unterminated string literal
* fix(vscode): inline dependencies
* fix(vscode): dependencies
* feat(vscode): embedded markdown
* feat: add Markdown syntax highlighting
* chore: improve markdown example
* fix: markdown example
* feat: highlighting improvements
* chore: add changeset
* fix: CodeBlock => CodeSpan
* chore: get astro-markdown example running
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-05-17 09:29:16 -05:00
Drew Powers
7b55d3d43e
Chore: fix lint rules, add more error handling for unexpected cases ( #177 )
2021-05-06 14:57:14 -04:00
Nate Moore
4df1347156
Migrate to yarn
monorepo ( #157 )
...
* chore: use monorepo
* chore: scaffold astro-scripts
* chore: move tests inside packages/astro
* chore: refactor tests, add scripts
* chore: move parser to own module
* chore: move runtime to packages/astro
* fix: move parser to own package
* test: fix prettier-plugin-astro tests
* fix: tests
* chore: update package-lock
* chore: add changesets
* fix: cleanup examples
* fix: starter example
* chore: update changeset config
* chore: update changeset config
* chore: setup changeset release workflow
* chore: bump lockfiles
* chore: prism => astro-prism
* fix: tsc --emitDeclarationOnly
* chore: final cleanup, switch to yarn
* chore: add lerna
* chore: update workflows to yarn
* chore: update workflows
* chore: remove lint workflow
* chore: add astro-dev script
* chore: add symlinked README
2021-04-30 16:33:35 -05:00