Skip to content

Commit 2aaaf9b

Browse files
committed
docs: update links section
1 parent 55e8fd0 commit 2aaaf9b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/docs/rich-text-formatting/links.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ applying the link. To strip a link while keeping its text, call
9797

9898
## Try it out
9999

100-
The editor below uses a custom `linkRegex` that autolinks `issue-123` tokens on
101-
top of the usual URL detection - type either and watch it become a link. Then
100+
The editor below uses a custom `linkRegex` that autolinks `issue-123` tokens - type them and watch it become a link. Then
102101
select some words and hit **Link the selection** to attach a URL manually.
103102
Notice the difference afterward: editing the manual link's text keeps it a link,
104103
while editing an autolinked token breaks it.

docs/src/examples/LinksEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
import { useRef, useState } from 'react';
77
import { View, StyleSheet, Pressable, Text } from 'react-native';
88

9-
// Autolink any "issue-123" style token on top of the default URL detection.
9+
// Autolink any "issue-123" style token.
1010
const linkRegex = /issue-\d+/g;
1111

1212
export default function App() {
@@ -33,7 +33,7 @@ export default function App() {
3333
<EnrichedTextInput
3434
ref={ref}
3535
style={styles.input}
36-
placeholder="Type a URL, or issue-123, or select text below..."
36+
placeholder="Type issue-123, or select text below..."
3737
linkRegex={linkRegex}
3838
onChangeSelection={e => setSelection(e.nativeEvent)}
3939
/>

0 commit comments

Comments
 (0)