-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Markdown Export Formatter #12220
base: main
Are you sure you want to change the base?
Markdown Export Formatter #12220
Conversation
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.
One suggestion about Changelog, other things look ok-ish to me.
As noone asked for this feature yet, i guess you will be the only one for a long time to use it, so opinionated implementation is fine for me.
What im not sure of is a custom SaveOrder hardcoded. Opinions?
Co-authored-by: Carl Christian Snethlage <[email protected]>
@@ -27,6 +30,7 @@ public static ExporterFactory create(CliPreferences preferences) { | |||
List<TemplateExporter> customFormats = preferences.getExportPreferences().getCustomExporters(); | |||
LayoutFormatterPreferences layoutPreferences = preferences.getLayoutFormatterPreferences(); | |||
SelfContainedSaveOrder saveOrder = SelfContainedSaveOrder.of(preferences.getSelfContainedExportConfiguration().getSaveOrder()); | |||
SelfContainedSaveOrder saveMostRecentFirst = new SelfContainedSaveOrder(SaveOrder.OrderType.SPECIFIED, List.of(new SortCriterion(StandardField.YEAR, true))); |
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 would simply use the save order from the preferences, just for consistency and to reduce wtfs ;)
Yes, preferences save order. Maybe we can make it somewhat customizable in the layout files in a follow up? |
I quickly implemented an export format in a specific (admittedly, opinionated) format to Markdown... I find the format useful to put on websites that uses Markdown as input format website.
For anybody who's interested, the command I use to generate the list of the website is:
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)