how to change the default rendering style for Sharepoint Markdown Web part?

Jiyang Ye 21 Reputation points
2020-11-13T13:15:21.98+00:00

Sharepoint supports editing the page in markdown format through the Markdown Web part, which is really good. The issue I have is that the default markdown rendering style is not good enough, not as good as the one been used by VS Code or Github. My question is that is it possible to replace the default markdown rendering style with something else?

And also the table of contents in Markdown Web Part is not working.

Can anyone help to answer my questions?

Thanks in advance,
Jiyang

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,703 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-11-16T06:42:03.787+00:00

    The table format of the native markdown web part is for your reference:
    39954-image.png
    As @Trevor Seward said, you need to develop your custom markdown SPFX.
    My test MarkDown SPFX for your reference:
    40035-image.png
    You could get it here:https://github.com/Amos-MSFT/SharePoint-FrameWork-Demos/blob/master/ReactMarkDownSPFX/src/webparts/reactEmptySpfx/components/ReactEmptySpfx.tsx
    I use react-markdown-editor-lite in my test project, Github address:https://github.com/HarryChen0506/react-markdown-editor-lite/blob/master/README.md


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Trevor Seward 11,706 Reputation points
    2020-11-14T17:25:40.627+00:00

    You would need to develop your own markdown web part.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.