Skip to content

Commit b071805

Browse files
committed
add IntelliJ migration 0.40.x to 0.42.0
1 parent 35c7d5d commit b071805

2 files changed

Lines changed: 35 additions & 19 deletions

File tree

VERSION.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,31 @@ Future 0.50.0
113113
0.42.0
114114
------
115115

116-
* Fix: [#332, withOptions forgets about old link resolvers]
117-
* Break: move `com.vladsch.flexmark.Extension` to `com.vladsch.flexmark.util.builder.Extension`
116+
* Fix: [#332, withOptions forgets about old link resolvers]
117+
* Break: move `com.vladsch.flexmark.Extension` to
118+
`com.vladsch.flexmark.util.builder.Extension`
119+
* Fix: IntelliJ Migration contained in [migrate flexmark-java 0_40_x to 0_42_0], to use:
120+
* copy to IntelliJ application settings to `migrations` subdirectory
121+
* if you have the project which you want to migrate open, then close it
122+
* open the project in IntelliJ Ultimate or Community
123+
* update the flexmark-java dependency version to 0.42.0 (or later) and make sure the new
124+
library is downloaded/updated in the project.
125+
* use menu `Refactor` > `Migrate...`
126+
* select `migrate flexmark-java 0.42.x to 0.50.0`
127+
* press `Run`
128+
* in the refactoring preview tool window that opens hit `Do Refactor`
118129
* Add: common builder base to handle unloading extensions
119130
* Add: `BuilderBase.RELOAD_EXTENSIONS` default `true`, if `true` then will unload loaded
120131
extension from the builder when `withOptions()` is used on: `Parser`, `HtmlRenderer`,
121132
`Formatter` or `DocxRenderer`. If `false` then will not reload extensions which are already
122133
loaded. The latter is slightly faster because loaded extensions are not re-loaded but will
123134
not change extension configuration for loaded extensions based on new options.
124135
* Fix: `HtmlParser.Builder` constructor with options does not preserve all already loaded
125-
extensions and custom api factories
136+
extensions and custom api factories
126137
* Fix: `Parser.Builder` constructor with options does not preserve all already loaded
127-
extensions and custom api factories
138+
extensions and custom api factories
128139
* Fix: `Formatter.Builder` constructor with options does not preserve all already loaded
129-
extensions and custom api factories
140+
extensions and custom api factories
130141
* Fix: `DocxRenderer.Builder` constructor with options does not preserve all already loaded
131142
extensions and custom api factories
132143
* Add: `BuilderBase.UNLOAD_EXTENSIONS`, default `Extension.EMPTY_LIST`, all extensions in the
@@ -136,8 +147,8 @@ Future 0.50.0
136147
0.40.34
137148
-------
138149

139-
* Fix: [#328, Html2mark - missing newline when paragraph followed by div]
140-
* Fix: [#331, Ability to replace empty \<p\> with \<br\> during html2mark conversion]
150+
* Fix: [#328, Html2mark - missing newline when paragraph followed by div]
151+
* Fix: [#331, Ability to replace empty \<p\> with \<br\> during html2mark conversion]
141152
* Fix: NPE in `TableParagraphPreProcessor`
142153
* Fix: `AutolinkNodePostProcessor` processing links out of order causing sequence end/start
143154
reversal.
@@ -167,8 +178,8 @@ Future 0.50.0
167178
-------
168179

169180
* Fix: upgrade dependencies
170-
* OpenHtmlToPdf -> 0.0.1-RC19
171-
* docx4j -> 6.1.2
181+
* OpenHtmlToPdf -> 0.0.1-RC19
182+
* docx4j -> 6.1.2
172183
* Add: parse int or default to `Utils.java`
173184

174185
0.40.24
@@ -189,14 +200,14 @@ Future 0.50.0
189200
`ParserEmulationProfile.PEGDOWN`
190201
* Fix: [#323, TOC generation improvement], profile setting HeaderId generation to `false` even
191202
though `PegdownExtensions.ANCHORLINKS` is not used
192-
* Add: css option to PDF export and use as default css from
193-
[#323, TOC generation improvement], thanks to @jvdvegt
194-
* Add: `PdfConverterExtension.DEFAULT_CSS` data key with default value of embedded CSS.
203+
* Add: css option to PDF export and use as default css from [#323, TOC generation improvement],
204+
thanks to @jvdvegt
205+
* Add: `PdfConverterExtension.DEFAULT_CSS` data key with default value of embedded CSS.
195206
* Add: `PdfConverterExtension.embedCss(String html, String css)` will embed the css in html by
196207
inserting it between `<head>` and `</head>` wrapped in `<style>` and `</style>`. Does its
197208
best to generate valid HTML, use it if your don't want to bother creating your own HTML
198209
document with embedded CSS.
199-
210+
200211
:information_source: Default CSS is only added if
201212
`PdfConverterExtension.exportToPdf(OutputStream, String, String, DataHolder)` is used to
202213
provide options. For all other calls you need to embed the default css into your HTML string
@@ -1341,15 +1352,13 @@ setting either will affect both keys. For information on these keys see
13411352
[#318, Ability to disable table caption in FlexmarkHtmlParser]: https://github.com/vsch/flexmark-java/issues/318
13421353
[#323, TOC generation improvement]: https://github.com/vsch/flexmark-java/issues/323
13431354
[#326, flexmark-html-parser - multiple \<code\> inside \<pre\> bug]: https://github.com/vsch/flexmark-java/issues/326
1355+
[#328, Html2mark - missing newline when paragraph followed by div]: https://github.com/vsch/flexmark-java/issues/328
1356+
[#331, Ability to replace empty \<p\> with \<br\> during html2mark conversion]: https://github.com/vsch/flexmark-java/issues/331
1357+
[#332, withOptions forgets about old link resolvers]: https://github.com/vsch/flexmark-java/issues/332
13441358
[Admonition Extension, Material for MkDocs]: https://squidfunk.github.io/mkdocs-material/extensions/admonition/
13451359
[Awesome Console]: https://plugins.jetbrains.com/plugin/7677-awesome-console "Awesome Console"
13461360
[migrate 0_35_x to 0_40_0.xml]: /assets/migrations/migrate%20flexmark-java%200_35_x%20to%200_40_0.xml
1361+
[migrate flexmark-java 0_40_x to 0_42_0]: https://github.com/vsch/flexmark-java/blob/master/assets/migrations/migrate%20flexmark-java%200_40_x%20to%200_42_0.xml
13471362
[NodeInsertingPostProcessorSample.java]: https://github.com/vsch/flexmark-java/blob/master/flexmark-java-samples/src/com/vladsch/flexmark/samples/NodeInsertingPostProcessorSample.java
13481363
[YouTrack: IDEA-207453]: https://youtrack.jetbrains.com/issue/IDEA-207453 "Add Conversion of ref anchor to UrlFilter for file line navigation"
1349-
[#328, Html2mark - missing newline when paragraph followed by div]: https://github.com/vsch/flexmark-java/issues/328
1350-
[#331, Ability to replace empty \<p\> with \<br\> during html2mark conversion]: https://github.com/vsch/flexmark-java/issues/331
1351-
[#332, withOptions forgets about old link resolvers]: https://github.com/vsch/flexmark-java/issues/332
1352-
1353-
1354-
13551364

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<migrationMap>
3+
<name value="migrate flexmark-java 0.40.x to 0.42.0" />
4+
<description value="Class migrations from flexmark-java 0.40.x to 0.42.0" />
5+
<entry oldName="com.vladsch.flexmark.Extension" newName="com.vladsch.flexmark.util.builder.Extension" type="class" />
6+
</migrationMap>
7+

0 commit comments

Comments
 (0)