improving replace url features

This commit is contained in:
2025-08-21 08:55:29 -06:00
parent 224cc9cd2a
commit d1a768393c
6 changed files with 90 additions and 17 deletions

View File

@@ -108,6 +108,12 @@ export const getStatus = ({
markdownToHTMLSafe({
markdownString: assignment.description,
settings,
replaceText: [
{
source: "insert_github_classroom_url",
destination: assignment.githubClassroomAssignmentShareLink || "",
},
],
}),
canvasAssignment.description
);

View File

@@ -59,7 +59,15 @@ export default function AssignmentPreview({
<hr />
<br />
<section>
<MarkdownDisplay markdown={assignment.description} />
<MarkdownDisplay
markdown={assignment.description}
replaceText={[
{
source: "insert_github_classroom_url",
destination: assignment.githubClassroomAssignmentShareLink || "",
},
]}
/>
</section>
<hr />
<section>