Skip to content

Add support for mdEditorFeatures complex extension#40

Merged
alexlipovka merged 4 commits into
mainfrom
md-editor-features
Feb 17, 2026
Merged

Add support for mdEditorFeatures complex extension#40
alexlipovka merged 4 commits into
mainfrom
md-editor-features

Conversation

@alexlipovka
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/converter/__tests__/fce.test.ts Outdated
@@ -127,6 +129,7 @@ describe('Questionanire and QuestionnaireResponses transformation', () => {
['enable-filtering', fhir_enable_filtering, fce_enable_filtering],
['enable-sort', fhir_enable_sort, fce_enable_sort],
['default_sort', fhir_default_sort, fce_default_sort],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default-sort for uniformity

Comment thread src/converter/extensions.ts Outdated
transform: {
fromExtensions: (extensions) => {
return {
mdEditorFeatures: extensions[0]?.extension?.reduce((acc, extension) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it has 0..* cardinality, better to handle this for future, just map over extensions

Comment thread src/converter/extensions.ts Outdated
},
toExtensions: (item) => {
if (item.mdEditorFeatures) {
return [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, return array or extensions for each feature

@alexlipovka alexlipovka merged commit f25e4e2 into main Feb 17, 2026
3 checks passed
@alexlipovka alexlipovka deleted the md-editor-features branch February 17, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants