Skip to content

Commit a5d837a

Browse files
Fix MDX syntax errors in code block formatting
The previous prettier formatting put code blocks on a single line with the opening tag, which broke MDX parsing. This commit fixes the issue by ensuring code blocks are on separate lines within Tabs.Tab components, following the pattern used elsewhere in the codebase. Co-Authored-By: Jayant <[email protected]>
1 parent 02d3bee commit a5d837a

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

pages/price-feeds/use-real-time-data/pull-integration/starknet.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,19 @@ Pyth also provides a javascript SDK to interact with the Pyth contract on Starkn
2121

2222
<Tabs items={["npm", "yarn"]}>
2323
<Tabs.Tab>
24-
```sh copy npm install --save @pythnetwork/pyth-starknet-js ```
24+
25+
```sh copy
26+
npm install --save @pythnetwork/pyth-starknet-js
27+
```
28+
29+
</Tabs.Tab>
30+
<Tabs.Tab>
31+
32+
```sh copy
33+
yarn add @pythnetwork/pyth-starknet-js
34+
```
35+
2536
</Tabs.Tab>
26-
<Tabs.Tab>```sh copy yarn add @pythnetwork/pyth-starknet-js ```</Tabs.Tab>
2737
</Tabs>
2838

2939
## Write Contract Code

pages/price-feeds/use-real-time-data/pull-integration/ton.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ Install the Pyth TON SDK and other necessary dependencies using npm:
1414

1515
<Tabs items={["npm", "yarn"]}>
1616
<Tabs.Tab>
17-
```sh copy npm install @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
18-
@ton/core @ton/ton @ton/crypto ```
17+
18+
```sh copy
19+
npm install @pythnetwork/pyth-ton-js @pythnetwork/hermes-client @ton/core @ton/ton @ton/crypto
20+
```
21+
1922
</Tabs.Tab>
2023
<Tabs.Tab>
21-
```sh copy yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
22-
@ton/core @ton/ton @ton/crypto ```
24+
25+
```sh copy
26+
yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client @ton/core @ton/ton @ton/crypto
27+
```
28+
2329
</Tabs.Tab>
2430
</Tabs>
2531

0 commit comments

Comments
 (0)