From 63dac07c149d10671fb18b5400497a3aa4cc1b8f Mon Sep 17 00:00:00 2001 From: KB Bot Date: Thu, 13 Nov 2025 11:58:25 +0000 Subject: [PATCH 1/6] Added new kb article rendering-markdown-in-telerik-reporting-templates --- ...markdown-in-telerik-reporting-templates.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 knowledge-base/rendering-markdown-in-telerik-reporting-templates.md diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md new file mode 100644 index 000000000..79d1ff9aa --- /dev/null +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -0,0 +1,50 @@ +--- +title: Rendering Markdown in Telerik Reporting Templates +description: Learn how to use and render markdown content in Telerik Reporting templates by converting it to HTML. +type: how-to +page_title: Using Markdown in Telerik Reporting via HTML Conversion +meta_title: Using Markdown in Telerik Reporting via HTML Conversion +slug: rendering-markdown-in-telerik-reporting-templates +tags: reporting, htmltextbox, markdown, html, azure-devops +res_type: kb +ticketid: 1703063 +--- + +## Environment + + + + + + + + + + + +
Product Reporting
Version 18.2.24.924
+ +## Description + +I want to use markdown content from Azure DevOps wiki pages in Telerik Reporting templates. Markdown is not directly supported in Telerik Reporting, and I need to display the content within a report template. + +This knowledge base article also answers the following questions: +- How to render markdown content in Telerik Reporting? +- Can Telerik Reporting display Azure DevOps wiki content? +- How to convert markdown to HTML for use in Telerik Reporting? + +## Solution + +Telerik Reporting does not have native support for rendering markdown syntax directly. However, you can use the [HtmlTextBox](https://docs.telerik.com/reporting/report-items/htmltextbox/overview) report item to display HTML content, which supports a limited set of HTML tags and CSS attributes. Follow these steps: + +1. Use an external markdown-to-HTML converter to transform your markdown content from Azure DevOps wiki into HTML format. +2. Pass the converted HTML content to the HtmlTextBox report item in your Telerik Reporting template. +3. Ensure that the HTML content uses only the supported tags and CSS attributes. Unsupported tags will not be rendered. + +Refer to [Styling and Formatting the HtmlTextBox Report Item](https://docs.telerik.com/reporting/report-items/htmltextbox/formatting) for a list of supported HTML tags and CSS attributes. + +## See Also + +- [HtmlTextBox Overview - Telerik Reporting](https://docs.telerik.com/reporting/report-items/htmltextbox/overview) +- [Styling and Formatting the HtmlTextBox Report Item](https://docs.telerik.com/reporting/report-items/htmltextbox/formatting) +- [Telerik Reporting Documentation](https://docs.telerik.com/reporting) From fdcc91b3045acfce488b78f13bd20a1616e9b8a8 Mon Sep 17 00:00:00 2001 From: IvetNikolova <118352332+IvetNikolova@users.noreply.github.com> Date: Thu, 13 Nov 2025 14:14:31 +0200 Subject: [PATCH 2/6] Update rendering-markdown-in-telerik-reporting-templates.md --- ...markdown-in-telerik-reporting-templates.md | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md index 79d1ff9aa..c5d0cf8bb 100644 --- a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -12,39 +12,34 @@ ticketid: 1703063 ## Environment - - - - - - - - - - + + + + + + + + + +
Product Reporting
Version 18.2.24.924
Product Reporting
Version 18.2.24.924
## Description I want to use markdown content from Azure DevOps wiki pages in Telerik Reporting templates. Markdown is not directly supported in Telerik Reporting, and I need to display the content within a report template. -This knowledge base article also answers the following questions: -- How to render markdown content in Telerik Reporting? -- Can Telerik Reporting display Azure DevOps wiki content? -- How to convert markdown to HTML for use in Telerik Reporting? - ## Solution -Telerik Reporting does not have native support for rendering markdown syntax directly. However, you can use the [HtmlTextBox](https://docs.telerik.com/reporting/report-items/htmltextbox/overview) report item to display HTML content, which supports a limited set of HTML tags and CSS attributes. Follow these steps: +Telerik Reporting does not have native support for rendering markdown syntax directly. However, you can use the [HtmlTextBox]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) report item to display HTML content, which supports a limited set of HTML tags and CSS attributes. Follow these steps: 1. Use an external markdown-to-HTML converter to transform your markdown content from Azure DevOps wiki into HTML format. -2. Pass the converted HTML content to the HtmlTextBox report item in your Telerik Reporting template. -3. Ensure that the HTML content uses only the supported tags and CSS attributes. Unsupported tags will not be rendered. +1. Pass the converted HTML content to the HtmlTextBox report item in your Telerik Reporting template. +1. Ensure that the HTML content uses only the supported tags and CSS attributes. Unsupported tags will not be rendered. -Refer to [Styling and Formatting the HtmlTextBox Report Item](https://docs.telerik.com/reporting/report-items/htmltextbox/formatting) for a list of supported HTML tags and CSS attributes. +Refer to [Styling and Formatting the HtmlTextBox Report Item]({%slug htmltextbox_formatting_and_styling%}) for a list of supported HTML tags and CSS attributes. ## See Also -- [HtmlTextBox Overview - Telerik Reporting](https://docs.telerik.com/reporting/report-items/htmltextbox/overview) -- [Styling and Formatting the HtmlTextBox Report Item](https://docs.telerik.com/reporting/report-items/htmltextbox/formatting) -- [Telerik Reporting Documentation](https://docs.telerik.com/reporting) +* [HtmlTextBox Overview]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) +* [Styling and Formatting the HtmlTextBox Report Item]({%slug htmltextbox_formatting_and_styling%}) +* [Telerik Reporting Documentation](https://docs.telerik.com/reporting) From e43d7152258fe521b4a248ed47bb589bc95c6145 Mon Sep 17 00:00:00 2001 From: IvetNikolova <118352332+IvetNikolova@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:32:26 +0200 Subject: [PATCH 3/6] Update rendering-markdown-in-telerik-reporting-templates.md --- ...markdown-in-telerik-reporting-templates.md | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md index c5d0cf8bb..cf028d20c 100644 --- a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -36,6 +36,67 @@ Telerik Reporting does not have native support for rendering markdown syntax dir 1. Pass the converted HTML content to the HtmlTextBox report item in your Telerik Reporting template. 1. Ensure that the HTML content uses only the supported tags and CSS attributes. Unsupported tags will not be rendered. +To implement a Markdown-to-HTML converter, start by creating a [User Function]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/extending-expressions/user-functions%}) that accepts Markdown input and returns the corresponding HTML output. You may refer to the sample code below as a guideline. + +> To use the Markdown.ToHtml function, install the following NuGet package - [Markdig](https://www.nuget.org/packages/Markdig/0.44.0?_src=template) + +````C# + +namespace UserFunc +{ + public class Class1 + { + public static string ConvertMarkdownToHtml(string markdown) + { + if (string.IsNullOrEmpty(markdown)) + return string.Empty; + + return Markdown.ToHtml(markdown); + } + +```` + +```` +Input: + +# Hello World + +This is a **bold** statement and this is *italic*. + +## Features + +- Item 1 +- Item 2 +- Item 3 + +Visit [Google](https://google.com) for more info. + +> This is a blockquote. + +--- + +Done! +```` + +```` +Output: + +

Hello World

+

This is a bold statement and this is italic.

+

Features

+ +

Visit Google for more info.

+
+

This is a blockquote.

+
+
+

Done!

+```` + Refer to [Styling and Formatting the HtmlTextBox Report Item]({%slug htmltextbox_formatting_and_styling%}) for a list of supported HTML tags and CSS attributes. ## See Also From 6878a7f9cbaf4ffa5e9a3790d1e700e9ea5cc088 Mon Sep 17 00:00:00 2001 From: Dimitar Nikolov Date: Thu, 11 Dec 2025 17:08:45 +0200 Subject: [PATCH 4/6] Update rendering-markdown-in-telerik-reporting-templates.md --- ...markdown-in-telerik-reporting-templates.md | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md index cf028d20c..2a1b15edd 100644 --- a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -1,6 +1,6 @@ --- -title: Rendering Markdown in Telerik Reporting Templates -description: Learn how to use and render markdown content in Telerik Reporting templates by converting it to HTML. +title: Use Markdown in Telerik Reporting +description: "Learn how to use and render markdown content in Telerik Reporting by converting it to HTML, which can be displayed via the HtmlTextBox item." type: how-to page_title: Using Markdown in Telerik Reporting via HTML Conversion meta_title: Using Markdown in Telerik Reporting via HTML Conversion @@ -11,37 +11,37 @@ ticketid: 1703063 --- ## Environment + - - - -
Product Reporting
Version 18.2.24.924
## Description -I want to use markdown content from Azure DevOps wiki pages in Telerik Reporting templates. Markdown is not directly supported in Telerik Reporting, and I need to display the content within a report template. +I want to use [Markdown](https://en.wikipedia.org/wiki/Markdown) content from Azure DevOps wiki pages in Telerik reports. Markdown is not directly supported in Telerik Reporting, and I need a way to display the content within the report somehow. ## Solution Telerik Reporting does not have native support for rendering markdown syntax directly. However, you can use the [HtmlTextBox]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) report item to display HTML content, which supports a limited set of HTML tags and CSS attributes. Follow these steps: -1. Use an external markdown-to-HTML converter to transform your markdown content from Azure DevOps wiki into HTML format. -1. Pass the converted HTML content to the HtmlTextBox report item in your Telerik Reporting template. -1. Ensure that the HTML content uses only the supported tags and CSS attributes. Unsupported tags will not be rendered. +### Externally Convert to HTML -To implement a Markdown-to-HTML converter, start by creating a [User Function]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/extending-expressions/user-functions%}) that accepts Markdown input and returns the corresponding HTML output. You may refer to the sample code below as a guideline. +1. Use an external MD -> HTML converter(e.g. [Convert Markdown to HTML](https://markdowntohtml.com/)) to transform the `MD` content into `HTML`. +1. Pass the converted HTML content to the [HtmlTextBox]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) report item in your Telerik report. +1. Ensure that the HTML content uses only the [supported HTML tags and CSS attributes]({%slug htmltextbox_formatting_and_styling%}). -> To use the Markdown.ToHtml function, install the following NuGet package - [Markdig](https://www.nuget.org/packages/Markdig/0.44.0?_src=template) +### Convert to HTML via User Functions -````C# +If the `MD` content cannot be converted to `HTML` beforehand, create a [User Function]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/extending-expressions/user-functions%}) that accepts the Markdown input and returns the corresponding HTML output. You may refer to the sample code below as a guideline. + +> To use the `Markdown.ToHtml` function, install the following NuGet package in the project with the user function - [Markdig](https://www.nuget.org/packages/Markdig/0.44.0?_src=template) +````C# namespace UserFunc { public class Class1 @@ -56,9 +56,9 @@ namespace UserFunc ```` -```` -Input: +- Input: +```` # Hello World This is a **bold** statement and this is *italic*. @@ -78,8 +78,7 @@ Visit [Google](https://google.com) for more info. Done! ```` -```` -Output: +- Output:

Hello World

This is a bold statement and this is italic.

@@ -97,10 +96,7 @@ Output:

Done!

```` -Refer to [Styling and Formatting the HtmlTextBox Report Item]({%slug htmltextbox_formatting_and_styling%}) for a list of supported HTML tags and CSS attributes. - ## See Also * [HtmlTextBox Overview]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) * [Styling and Formatting the HtmlTextBox Report Item]({%slug htmltextbox_formatting_and_styling%}) -* [Telerik Reporting Documentation](https://docs.telerik.com/reporting) From 04fb9e85385ba0f351b3fa72c9657318e26b2c8a Mon Sep 17 00:00:00 2001 From: Dimitar Nikolov Date: Thu, 11 Dec 2025 17:09:21 +0200 Subject: [PATCH 5/6] Update rendering-markdown-in-telerik-reporting-templates.md --- .../rendering-markdown-in-telerik-reporting-templates.md | 1 + 1 file changed, 1 insertion(+) diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md index 2a1b15edd..bae014ac3 100644 --- a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -80,6 +80,7 @@ Done! - Output: +````HTML

Hello World

This is a bold statement and this is italic.

Features

From b9c37c23e685e606d6e1d4226cc43176e142c584 Mon Sep 17 00:00:00 2001 From: Dimitar Nikolov Date: Thu, 11 Dec 2025 17:10:23 +0200 Subject: [PATCH 6/6] Update rendering-markdown-in-telerik-reporting-templates.md --- .../rendering-markdown-in-telerik-reporting-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md index bae014ac3..6a7573822 100644 --- a/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md +++ b/knowledge-base/rendering-markdown-in-telerik-reporting-templates.md @@ -61,7 +61,7 @@ namespace UserFunc ```` # Hello World -This is a **bold** statement and this is *italic*. +This is a **bold** statement, and this is *italic*. ## Features