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

Answer removes nested content #47

Closed
Warxcell opened this issue May 23, 2023 · 2 comments
Closed

Answer removes nested content #47

Warxcell opened this issue May 23, 2023 · 2 comments

Comments

@Warxcell
Copy link

Warxcell commented May 23, 2023

<SchemaOrgQuestion>
      <template #name>
          test
      </template>
      <template #answer>
          1
          <span>
              2
          </span>
          <span>
              <span>
                  3
              </span>
          </span>
      </template>
  </SchemaOrgQuestion>

outputs



{
--
  | "@id": "https://127.0.0.1:3000/about-us/#/schema/question/3e7be0c",
  | "@type": "Question",
  | "answer": "12",
  | "name": "test?",
  | "acceptedAnswer": {
  | "@type": "Answer",
  | "text": "12"
  | }

Any ideas?

@Warxcell Warxcell changed the title When answer removes nested content Answer removes nested content May 23, 2023
@harlan-zw
Copy link
Collaborator

Hi @Warxcell, please see the docs for this https://unhead-schema-org.harlanzw.com/guide/guides/components#headless-slots

Only supports shallow text nodes

This is a Vue limitation so not much I can do about this.

@harlan-zw harlan-zw closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
@Warxcell
Copy link
Author

Warxcell commented May 25, 2023

Hm, do you have a link to issue describing the limitation? Thanks

Ok, nvm. I found it. Will try work-around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants