From 8776a027595d24b80179714239d3bfb514b6fc05 Mon Sep 17 00:00:00 2001 From: Roman Kolobov Date: Fri, 2 Dec 2022 14:55:01 +0200 Subject: [PATCH] fix IsMarkdown boolean value --- src/YouTrackSharp/Issues/Comment.cs | 2 +- src/YouTrackSharp/Issues/Issue.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YouTrackSharp/Issues/Comment.cs b/src/YouTrackSharp/Issues/Comment.cs index 1a28334..fe85795 100644 --- a/src/YouTrackSharp/Issues/Comment.cs +++ b/src/YouTrackSharp/Issues/Comment.cs @@ -25,7 +25,7 @@ internal static Comment FromApiEntity(IssueComment entity, bool wikify = false) AuthorFullName = entity.Author?.FullName, IssueId = entity.Issue?.IdReadable, IsDeleted = entity.Deleted ?? false, - IsMarkdown = false, + IsMarkdown = true, Text = wikify ? entity.TextPreview : entity.Text, Created = (entity.Created ?? 0).TimestampToDateTime(), Updated = (entity.Updated ?? 0).TimestampToDateTime(), diff --git a/src/YouTrackSharp/Issues/Issue.cs b/src/YouTrackSharp/Issues/Issue.cs index 1d91b52..b275e16 100644 --- a/src/YouTrackSharp/Issues/Issue.cs +++ b/src/YouTrackSharp/Issues/Issue.cs @@ -60,7 +60,7 @@ internal static Issue FromApiEntity(Generated.Issue entity, bool wikify = false, JiraId = entity.ExternalIssue?.Id, Summary = entity.Summary, Description = wikify ? entity.WikifiedDescription : entity.Description, - IsMarkdown = false, + IsMarkdown = true, Comments = entity.Comments?.Select(comment => Comment.FromApiEntity(comment, wikifyContents)).ToList(), Tags = entity.Tags?.Select(tag => new SubValue(){Value=tag.Name}) };