Update changelog plus few minor fixes for typos
MODIFY
CHANGELOG.adoc
CHANGELOG.adoc
@@ -13,6 +13,14 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[
== Unreleased
+Improvements::
+
+ * Add the command line option -R to specify the source root directory (@4lber10 & @ysb33r) (#822)
+
+Documentation:
+
+ * Clarify that an InlineMacroProcessor should return a PhraseNode and that Strings are deprecated. (@jmini) (#823)
+
== 2.0.0 (2019-04-24)
Enhancements::

MODIFY
asciidoctorj-documentation/src/main/asciidoc/extension-migration-guide.adoc
asciidoctorj-documentation/src/main/asciidoc/extension-migration-guide.adoc
@@ -105,10 +105,10 @@ Additionally the file `/META-INF/services/org.asciidoctor.extension.spi.Extensio
com.example.MyExtension
----
-=== InlineMacroProcessor expect a PhraseNode instead of a String
+=== InlineMacroProcessor should return a PhraseNode instead of a String
-A really simple extension `yell` can be implemented as `InlineMacroProcessor`.
-It just write the target value as upper-case string.
+A really simple extension `yell` can be implemented as an `InlineMacroProcessor`.
+It just writes the target value as an upper-case string.
For example `yell&#58;yes&#91;&#93;` is replaced by `YES` in the generated document.
[source,java]
@@ -127,13 +127,13 @@ public class YellMacroProcessor extends InlineMacroProcessor {
}
----
-The implementation also works with Asciidcotor `2.0.x` but since version `2.0.0.rc.3` of Asciidoctor, when a String is returned, following entry is logged:
+The implementation also works with Asciidoctor `2.0.x` but since version `2.0.0.rc.3` of Asciidoctor, when a String is returned, following entry is logged:
====
INFO: expected substitution value for custom inline macro to be of type Inline; got String: yell&#58;yes&#91;&#93;
====
-The correct implementation with Asciidcotor `2.0.x` is to return a `PhraseNode`:
+The correct implementation with Asciidoctor `2.0.x` is to return a `PhraseNode`:
[source,java]
.YellMacroProcessor.java for AsciidoctorJ 2.0.x

MODIFY
docs/extension-migration-guide.adoc
docs/extension-migration-guide.adoc
@@ -105,10 +105,10 @@ Additionally the file `/META-INF/services/org.asciidoctor.extension.spi.Extensio
com.example.MyExtension
----
-=== InlineMacroProcessor expect a PhraseNode instead of a String
+=== InlineMacroProcessor should return a PhraseNode instead of a String
-A really simple extension `yell` can be implemented as `InlineMacroProcessor`.
-It just write the target value as upper-case string.
+A really simple extension `yell` can be implemented as an `InlineMacroProcessor`.
+It just writes the target value as an upper-case string.
For example `yell&#58;yes&#91;&#93;` is replaced by `YES` in the generated document.
[source,java]
@@ -127,13 +127,13 @@ public class YellMacroProcessor extends InlineMacroProcessor {
}
----
-The implementation also works with Asciidcotor `2.0.x` but since version `2.0.0.rc.3` of Asciidoctor, when a String is returned, following entry is logged:
+The implementation also works with Asciidoctor `2.0.x` but since version `2.0.0.rc.3` of Asciidoctor, when a String is returned, following entry is logged:
====
INFO: expected substitution value for custom inline macro to be of type Inline; got String: yell&#58;yes&#91;&#93;
====
-The correct implementation with Asciidcotor `2.0.x` is to return a `PhraseNode`:
+The correct implementation with Asciidoctor `2.0.x` is to return a `PhraseNode`:
[source,java]
.YellMacroProcessor.java for AsciidoctorJ 2.0.x

Update changelog plus few minor fixes for typos