-
Notifications
You must be signed in to change notification settings - Fork 4
Render fields as markdown #1747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Render fields as markdown #1747
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
@Tschuppi81 Did you check whether the other view type uses markdown? It might use |
Actually nevermind, this is default form display rendering. So it is probably a markdown field. I would suggest relying on the field display renderer for rendering values, rather than trying to roll your own custom display. Have a look at the Although you may actually just be able to use the |
Yes, I will try to reuse the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I just have a small question regarding the CSS change.
padding: 0; | ||
display: inline; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there only a CSS change for Org, does Town6 not need one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fort town6 it was introduced with ogc-1634, ed93c7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this change is about .field-display
not .accordion-title
or .accordion-content
. If anything you'd be missing CSS rules for both Org and Town now, just different ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now found a way to make it independent of .field-display
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My problem is not with the rules you added or what elements they address.
I'm asking why you have custom CSS for the header and content of the accordion in Town6 and not Org, and why you have custom styling for the display of the fields in Org but not Town6.
If you're satisfied with how it looks in both styles I'm satisfied too.
I was merely puzzled by the difference between Org and Town6, since you've decided to manually style completely different elements in both cases. So I was asking whether or not that was intentional or if you accidentally forgot to sync the rules between Org and Town6.
Directory: Render markdown in accordion layout
TYPE: Feature
LINK: ogc-2131