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

Ability to make component tag-less #72

Open
sheriffderek opened this issue Jan 29, 2019 · 1 comment
Open

Ability to make component tag-less #72

sheriffderek opened this issue Jan 29, 2019 · 1 comment

Comments

@sheriffderek
Copy link

Sometimes I have a situation like this - where my H1 might be coming from a different place / and then I can't style adjacent selectors because of the div.ember-view that changes the heirarchy.

<PageSection>
  {{#each model.blocks as |block|}}
    <article class='editorial'>
      <h1 class='name'>{{block.name}}</h1>

      {{markdown-to-html block.value}}
    </article>
  {{/each}}
</PageSection>

screen shot 2019-01-28 at 5 44 13 pm

.editorial
  h1
    strong-voice()
    + p
      margin-top: $pad
      border: 1px solid red
    + h2
      margin-top: $pad
      border: 3px solid red
  h2
    color: $highlight
    + p
      margin-top: $pad

(I can change how the CMS works to avoid this / but if there's a go-to way to extend or change that component - that would be cool. : )

@yaxinr
Copy link

yaxinr commented Mar 14, 2019

{{markdown-to-html block.value tagName=''}}

ansmonjol added a commit to ansmonjol/ember-cli-showdown that referenced this issue Aug 14, 2020
As mentioned [in this issue](empress#72), this seems to render the markdown without the `ember-view` div wrapper.

Didn't tried yet, just saw that opened issue that may be worth mentioning in the readme.

Maybe @sheriffderek you can confirm this worked for you ?
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