Skip to content

Conversation

BlairCurrey
Copy link
Contributor

Description of changes

This disables prettier formatting of code blocks in markdown to allow us to preserve extra lines like this:

function something() {
    // need extra white space
    
    


    // like this
}

The other options would be to ignore the specific code blocks. Can switch to that if we miss the formatting.

Note that this technically isn't just limited to markdown codeblocks. It would also turn off formatting for, html tagged templates in .js files, for example. I dont think we'll run into that or similar scenario but if we did we could narrow the rule to .md files.

Required

  • Used LinkOut component on external links
  • Reviewed Vale errors and made changes where appropriate
  • Ran Prettier
  • Previewed updates in Netlify
  • Received SME and/or peer approval if updates are significant
  • Included a "fixes #" comment

Conditional

  • Ensured sequence diagrams follow our style guide
  • Included code samples where appropriate
  • Updated related READMEs

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for openpayments-preview canceled.

Name Link
🔨 Latest commit 69f63c0
🔍 Latest deploy log https://app.netlify.com/projects/openpayments-preview/deploys/68b9cf061b64d100080b7d9a

@BlairCurrey BlairCurrey merged commit 0c957fb into main Sep 4, 2025
5 checks passed
@BlairCurrey BlairCurrey deleted the bc/prettier-2 branch September 4, 2025 18:02
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.

2 participants