- Fixed NRE in
TryLoadYouTubePreview
whenGenerateLoadImageUrl
was null
- Fixes version 1.5.0
- Added
VideoPreviewDescriptor
which contains url and code of video and is used in all methods for loading video preview.
- String parameter in
YouTubePreview.GenerateLoadImageUrl
andYouTubePreview.CustomLoadImage
is changed toVideoPreviewDescriptor
YouTubePreview.TransformView
has new parameterVideoPreviewDescriptor
- Dependency on Xamarin.Forms 3.5.0.274416
- Added
LinkStyle.YouTubePreview.GenerateLoadImageUrl
which can be used for custom url of YouTube video preview. Default url is https://img.youtube.com/vi/{code}/hqdefault.jpg - Added
TextDecorations
- Support for ASCII emojis. (https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/EmojiSpecs.md)
- This feature is disabled by default. Set
UseEmojiAndSmileyExtension = true
for enabling.
- This feature is disabled by default. Set
- YouTube preview (added in 1.2.0) parses url from youtube-nocookie.com
- Support for converting YouTube links to video preview
- This feature is disabled by defualt. Set
LinkStyle.LoadYouTubePreview = true
for enabling. - There are also callbacks
LinkStyle.YouTubePreview.CustomLoadImage
for downloading image andLinkStyle.YouTubePreview.TransformView
for rendering it
- This feature is disabled by defualt. Set
- Support parsing link in plaintext. (https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/AutoLinks.md)
- This feature is disabled by default. Set
LinkStyle.UseAutolinksExtension = true
for enabling.
- This feature is disabled by default. Set
- Support for autolinks (https://spec.commonmark.org/0.29/#autolinks)
- Autolinks are rendered the same way as regular links.
HorizontalTextAlignment
andVerticalTextAlignment
for Heading, Paragraph and Code- Added
ExternalProtocols
toLinkStyle
which defines link protocols which can be opened by default tap handler (default are: http://, https://, mailto:, tel:)
CreateSpans
returnsSpan[0]
instead ofnull
for unknown type, which solvesNullReferenceException
LinkStyle.CustomCallback
renamed toLinkStyle.CustomTapHandler
- LinkStyle
- Changeable texts in action sheet in default tap handler
- Custom tap handler for links
- Vertical spacing of items
- Vertical spacing of list items
- Rewritten list margins
- List margin (top/bottom/left/right margin of whole list)
- List bullets
- Various bullet types (including custom view)
- Bullet size, color, font attributes
- Spacing (space between bullet and content of list item)
- Align of bullets
- Refactored rendering of lists
- List indentation (indentation of each level of list)
- Fork of original package Xam.Forms.MarkdownView
- Consolidation of dependencies
- Support for
LineHeight