Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacroLiveSampleError if there is an embedlivesample macro before the first H2 #9455

Open
bsmth opened this issue Aug 7, 2023 · 1 comment
Assignees
Labels

Comments

@bsmth
Copy link
Member

bsmth commented Aug 7, 2023

Failing:

<!-- ## Section heading -->

A para

```html live-sample___testing
<p>Hello world</p>
```

{{EmbedLiveSample("testing")}}

Passing

## Section heading

A para

```html live-sample___testing
<p>Hello world</p>
```

{{EmbedLiveSample("testing")}}

Steps to reproduce:

  1. Add the contents from the failing case into a new post with any frontmatter
  2. Run yarn build:blog
@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 7, 2023
@bsmth bsmth added the blog label Aug 7, 2023
@LeoMcA LeoMcA self-assigned this Aug 7, 2023
@bsmth bsmth removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 7, 2023
@github-actions github-actions bot added the idle label Jan 24, 2024
@bsmth bsmth changed the title The build:blog command will fail if there is an embedlivesample macro invocation before the first H2 MacroLiveSampleError if there is an embedlivesample macro before the first H2 Nov 8, 2024
@bsmth
Copy link
Member Author

bsmth commented Nov 8, 2024

Current workaround is to move the {{EmbedLiveSample("example-name")}} call after the first ## H2 heading or create a new H2 like ## Overview before the example.

@github-actions github-actions bot removed the idle label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants