Skip to content

Conversation

@farnabaz
Copy link
Collaborator

@farnabaz farnabaz commented Mar 4, 2025

This PR tries to fix the issues of current indent behavior by indenting all contents of a component.
The only un-indented part if the slots title and props frontmatter/code

::parent
---
foo: bar
---
  Paragraph 1

#description
  Paragraph 2

  :::child
    Paragraph 3
  :::
::

@codesandbox
Copy link

codesandbox bot commented Mar 4, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@hendrikheil
Copy link

@farnabaz I think this is the issue I originally reported with @larbish

Let me know if we can help test this in a real world environment 👍

@farnabaz
Copy link
Collaborator Author

farnabaz commented Mar 6, 2025

@hendrikheil Indeed this fix is the result of your report 🙂

As we talked with @larbish, we moved it to the next version because this is a breaking change.
Meanwhile, we are working on a linter to achieve standard and unified formatting. Linter will also help Studio users to prevent facing automatic changes.

I'll keep this open for a while, and ping you once merged and ask for your help on testing 🙏

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

Successfully merging this pull request may close these issues.

3 participants