2 Commits

Author SHA1 Message Date
primakov 05c291120d 1.4.3
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit
2025-12-15 21:30:57 +03:00
primakov 4fd2e5660c Enhance LearningMaterialViewer and TaskWorkspace components to open links in a new tab with appropriate security attributes. This improves user experience by ensuring external links are handled safely.
platform/bro-js/challenge-pl/pipeline/head Build queued...
2025-12-15 21:30:50 +03:00
4 changed files with 21 additions and 5 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "challenge", "name": "challenge",
"version": "1.4.2", "version": "1.4.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "challenge", "name": "challenge",
"version": "1.4.2", "version": "1.4.3",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@brojs/cli": "^1.9.4", "@brojs/cli": "^1.9.4",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "challenge", "name": "challenge",
"version": "1.4.2", "version": "1.4.3",
"description": "", "description": "",
"main": "./src/index.tsx", "main": "./src/index.tsx",
"scripts": { "scripts": {
@@ -234,7 +234,14 @@ export const LearningMaterialViewer = ({
} }
}} }}
> >
<ReactMarkdown remarkPlugins={[remarkGfm]}> <ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
a: ({ node: _node, ...props }) => (
<a {...props} target="_blank" rel="noopener noreferrer" />
)
}}
>
{pages[currentPage]} {pages[currentPage]}
</ReactMarkdown> </ReactMarkdown>
</Box> </Box>
+10 -1
View File
@@ -274,7 +274,16 @@ export const TaskWorkspace = ({ task, onTaskComplete, onTaskSkip }: TaskWorkspac
} }
}} }}
> >
<ReactMarkdown remarkPlugins={[remarkGfm]}>{task.description}</ReactMarkdown> <ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
a: ({ node: _node, ...props }) => (
<a {...props} target="_blank" rel="noopener noreferrer" />
)
}}
>
{task.description}
</ReactMarkdown>
</Box> </Box>
</Box> </Box>