Bugfix for Issue#5934 (#778)
* Bugfix for Issue#5934 * empty commit * Make anchor elements also to use UnderlinedLink wrapper --------- Co-authored-by: Suresh <soudher1@Sureshs-MacBook-Pro.local>
soudher1 committed
Oct 20, 2023 at 09:35 UTC
c378c815ccedcba847fd8aec119809ab0d1842c4
1 file changed
+6
-2
theme/src/wrap/root-element.js
+6
-2
@@ -19,8 +19,12 @@ import Prompt from '../components/prompt'
19
import PromptReply from '../components/prompt-reply'
20
import Screenshot from '../components/screenshot'
21
22
+function UnderlinedLink(props) {
23
+ return <Link {...props} underline={true}/>
24
+}
25
+
26
const components = {
23
- a: Link,
27
+ a: UnderlinedLink,
28
pre: props => props.children,
29
code: Code,
30
inlineCode: InlineCode,
@@ -43,7 +47,7 @@ const components = {
47
Prompt,
48
PromptReply,
49
Screenshot,
46
- Link,
50
+ Link: UnderlinedLink,
51
}
52
53
function wrapRootElement({element}) {