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

code blocks - automatically reset indent & beginning/ending lines #2

Open
jyoungblood opened this issue Apr 12, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@jyoungblood
Copy link
Owner

jyoungblood commented Apr 12, 2024

I don't like the way we have to format the code blocks right now, would love to automatically reset the indentation and ignore the first and last lines if they're blank.

So instead of this

      <pre><code class="language-php">function literally($string){
  return $string;
}</code></pre>

We could write this

      <pre><code class="language-php">
         function literally($string){
           return $string;
         }
      </code></pre>

and it would render correctly, regardless of how much it's actually indented in the code.

Some preliminary research links for ignoring first/last lines:

@jyoungblood jyoungblood changed the title code blocks - automatically reset indent code blocks - automatically reset indent & beginning/ending lines Apr 12, 2024
@jyoungblood jyoungblood added the enhancement New feature or request label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant