Releases: christiaanderidder/QuestPDF.Markdown
1.3.0
- Upgrade QuestPDF to version
2023.12.0
1.2.0
This release introduces a breaking change in how images are downloaded and rendered.
Image pixel size is no longer converted directly to points, instead a 0.5
scaling factor is applied by default. This means that an image of 200x200 pixels will be rendered at 100x100 points.
A new option has been added to control this behavior:
MarkdownRendererOptions.ImageScalingFactor
To keep the behavior of previous versions of QuestPDF.Markdown, set this option to 1.0
.
1.1.0
This release introduces a breaking change in how images are downloaded and rendered.
The following options have been removed:
MarkdownRendererOptions.ImageDownloaderEnabled
MarkdownRendererOptions.HttpClient
MarkdownRendererOptions.ImageDownloaderMaxParallelism
If you use image downloading and rendering, use the new ParsedMarkdownDocument.DownloadImages
instead:
var text = @"![title](https://placehold.co/100x50.jpg)";
var markdown = ParsedMarkdownDocument.FromText(text);
await markdown.DownloadImages(httpClient: myHttpClient /* Optionally provide your own HttpClient */);
var document = Document.Create(container =>
{
container.Page(page =>
{
page.Margin(20);
page.Content().Markdown(markdown, options);
});
});
1.0.1
The following features were added in this release
- Images
- Styling options
1.0.0
The following markdown features are supported in this release
- Headings
- Block quotes
- Code blocks
- Lists (ordered, unordered)
- Emphasis (bold, italic)
- Task lists
- Extra emphasis (subscript, superscript, strike-through, marked, inserted)
- Tables
1.0.0-alpha.6
Merge pull request #5 from christiaanderidder/extended-formatting Add extended formatting options
1.0.0-alpha.5
Update release.yml