abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.93k stars 3.44k forks source link

In MarkDown how to show "static void Main(string[] args)" #16469

Closed freebsensetips closed 1 year ago

freebsensetips commented 1 year ago

Is there an existing issue for this?

Description

In CmsKit Try to add new blog posts in detail When I add this in the code it shows

static void Main(string[] args)

<pre><code class="hljs language-csharp"><span class="hljs-function"><span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">Main</span>(<span class="hljs-params"><span class="hljs-built_in">string</span>
</span></span></code></pre>

Reproduction Steps

No response

Expected behavior

static void Main(string[] args)

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

7.0

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

enisn commented 1 year ago

I've tried and couldn't reproduce.

Editor

image

Editor Preview

image

Public Web


Can you provide more information with the reproduction steps?

freebsensetips commented 1 year ago

Thanks for you response but still facing issue

Editor View

image

Editor Preview

image

Published View

image

enisn commented 1 year ago
  1. Which theme are you using? (Basic, LeptonX Lite, other?)
  2. Can you please check if dependencies are up to date in package.json
    • If not, update them to latest version and run abp install-libs command.
freebsensetips commented 1 year ago

Using a Basic Theme and added some of my customized code to the theme Ok I will check but can you tell me which option i need to check in the package.json file ?

freebsensetips commented 1 year ago

my package.json file { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@abp/aspnetcore.mvc.ui.theme.basic": "~7.0.2", "@abp/aspnetcore.mvc.ui.theme.leptonxlite": "~2.0.2", "@abp/cms-kit": "~7.0.2" } }

JadynWong commented 1 year ago

It may be related to this.

You can upgrade to v7.1.0+ to solve this problem. Or replace ContentParser, but since in v7.0.0, the ContentParser.ParseContent method is not virtual, you may need to do a lot of work.

freebsensetips commented 1 year ago

Thanks @JadynWong I will try and update

freebsensetips commented 1 year ago

Done