Releases: CXuesong/MwParserFromScratch
Releases · CXuesong/MwParserFromScratch
v0.3.0-int.7
HtmlTag.ToPlainTextCore
: Write\n
when formatting<br />
or<hr />
into plaintext.
v0.3.0-int.6
- Fixed
CloneCore
implementation for variousNode
classes. (#18 by @FaFre) TemplateArgumentCollection.SetValue
now acceptsstring
as argument name.- Added
Wikitext
constructor overload shorthands that acceptstring
(asPlainText
) orInlineNode
instances. - Dropped explicit support for .NET Framework. We are planning to drop support for lower .NET Standard version in the future in order to adopt new C# language features.
v0.3.0-int.4
- Bug fix:
NullReferenceException
when callingNode.ToPlainText
onHtmlTag
s with empty content. (#15)
v0.3.0-int.3
- Add support for embedded image expression parsing. AST node type:
WikiImageLink
. (#13)
v0.3.0-int.2
- Refactored
Node.ToPlainText
to receive an optional delegate for customizing how aNode
should be converted into plain text. (#15)- Removed
NodePlainTextOptions
to this end.
- Removed
- The following parser tags are not shown in
ToPlainText
output- math
- ref
- templatedata
- templatestyles
- To change this default behavior, refer to #15.
v0.3.0-int.1
- Force to end all the unbalanced HTML tags at the end of
WIKITEXT
. (#14)- The old behavior is to leave tags as unparsed
PLAIN_TEXT
. The old behavior can cause performance issue when parsing unbalanced tags, such as #3.
- The old behavior is to leave tags as unparsed
- Take care of unbalanced
<li>
tag parsing. (#14) - Unbalanced tags will have
TagStyle
set toTagStyle.NotClosed
.
0.2.1
- Fixed #12. Now parser handles tags with uppercase letters properly.
- Prepare for the wikitext table expression support
- Added
TagAttributeCollection
, which in the future will be used inTagNode
as well as inTableContentNode
- Converted
InlineContainer
abstract class toIInlineContainer
interface - Added preliminary
Table
class. - The table parsing support is still yet to be implemented.
- Added
0.2.0
- (#6) Implemented a rudimentary closing mark inference feature.
- (#7) Migrated
IWikitextSpanInfo
from offset-based to line/column-based.- Renamed
IWikitextSpanInfo
toIWikitextLineInfo
.
- Renamed
- Requires
LIST_ITEM
starts at the beginning of the line.- the
* item
in{{Template|* item}}
will be parsed as plain-text rather than unordered list.
- the
WikitextParser
is now thread-safe.- As long as you do not call
Parse
when changing the content ofWikitextParserOptions
.
- As long as you do not call
The attached "debug" package is built in DEBUG mode, and may provide some extra runtime assertions (Debug.Assert).