Skip to content

Commit

Permalink
remove redundant title from cards after export
Browse files Browse the repository at this point in the history
  • Loading branch information
MajedAlaitwniCap committed Oct 29, 2024
1 parent 52a9712 commit 3c62bf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type CommonCartridgeFileParserOptions = {
export const DEFAULT_FILE_PARSER_OPTIONS: CommonCartridgeFileParserOptions = {
maxSearchDepth: 5,
pathSeparator: '/',
inputFormat: InputFormat.RICH_TEXT_CK5,
inputFormat: InputFormat.RICH_TEXT_CK4,
};

export type CommonCartridgeOrganizationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CommonCartridgeExportMapper {
type: CommonCartridgeResourceType.WEB_CONTENT,
identifier: createIdentifier(task.id),
title: task.name,
html: `<h1>${task.name}</h1><p>${task.description}</p>`,
html: `<p>${task.description}</p>`,
intendedUse,
};
}
Expand All @@ -79,7 +79,7 @@ export class CommonCartridgeExportMapper {
type: CommonCartridgeResourceType.WEB_CONTENT,
identifier: createIdentifier(content._id),
title: content.title,
html: `<h1>${content.title}</h1><p>${content.content.text}</p>`,
html: `<p>${content.content.text}</p>`,
intendedUse: CommonCartridgeIntendedUseType.UNSPECIFIED,
};
case ComponentType.GEOGEBRA:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class CommonCartridgeImportMapper {
const body = new RichTextContentBody();

body.text = resource.html;
body.inputFormat = InputFormat.RICH_TEXT_CK5_SIMPLE;
body.inputFormat = InputFormat.RICH_TEXT_CK4;

return body;
}
Expand Down

0 comments on commit 3c62bf0

Please sign in to comment.