Skip to content

Commit

Permalink
docs: adjust line breaks in code blocks (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylandavis authored and JessChowdhury committed May 14, 2024
1 parent ad67050 commit e8c8c9f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
13 changes: 5 additions & 8 deletions docs/configuration/localization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default buildConfig({
{
label: 'Arabic',
code: 'ar',
// opt-in to setting default text-alignment on Input fields to rtl (right-to-left) when current locale is rtl
// opt-in to setting default text-alignment on Input fields to rtl (right-to-left)
// when current locale is rtl
rtl: true,
},
],
Expand Down Expand Up @@ -134,13 +135,9 @@ to support localization, you need to specify each field that you would like to l
```js
{
name: 'title',
type
:
'text',
// highlight-start
localized
:
true,
type: 'text',
// highlight-start
localized: true,
// highlight-end
}
```
Expand Down
3 changes: 2 additions & 1 deletion docs/database/transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ The initial request made to Payload will begin a new transaction and attach it t

```ts
const afterChange: CollectionAfterChangeHook = async ({ req }) => {
// because req.transactionID is assigned from Payload and passed through, my-slug will only persist if the entire request is successful
// because req.transactionID is assigned from Payload and passed through,
// my-slug will only persist if the entire request is successful
await req.payload.create({
req,
collection: 'my-slug',
Expand Down
3 changes: 2 additions & 1 deletion docs/rich-text/lexical.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ const Pages: CollectionConfig = {
editor: lexicalEditor({
features: ({ defaultFeatures }) => [
...defaultFeatures,
// The HTMLConverter Feature is the feature which manages the HTML serializers. If you do not pass any arguments to it, it will use the default serializers.
// The HTMLConverter Feature is the feature which manages the HTML serializers.
// If you do not pass any arguments to it, it will use the default serializers.
HTMLConverterFeature({}),
],
}),
Expand Down

0 comments on commit e8c8c9f

Please sign in to comment.