Display Markup on WordPress

To display a Markup file inside a WordPress page, you can use the Markdown block or a Markdown editor plugin. For the Markdown block, navigate to the page or post editor, click the plus icon, and search for “Markdown” to add the block. Then, you can write your Markdown code directly in the block.

Alternatively, you can use a Markdown editor plugin like WP Markdown Editor (formerly Dark Mode). To install a Markdown plugin, go to Plugins > Add New, search for “Markdown,” and install the desired plugin. Once installed, you can use the plugin to write and edit Markdown content on your posts and pages.1

For adding schema markup, you can use custom fields. Navigate to the post or page where you want to add the schema, click on Screen Options, and check ‘Custom Fields.’ Then, create a new custom field named ‘schema’ and enter your JSON-LD code. After adding the custom field, you’ll need to edit your header.php file to ensure the schema code is loaded with your post metadata.3

WordPress Markdown Editor
wordpress.comMarkdown Block – WordPress.com Support
hostinger.comWhy You Need WordPress Schema Markup and How to Add it to Your Site
wordpress.comCustom HTML block – WordPress.com Support
How to display Markdown files from other sites in WordPress – Christian Specht

When I created the pages for my existing projects on this blog, I decided that I’d prefer to directly display the content of the readme files from Bitbucket (where all of my projects are hosted), instead of just copying the content.

How to Style Using Markup

To see the full range of Markdown formatting, see Markdown Extra.

from https://wordpress.com/support/wordpress-editor/blocks/markdown-block/

Markdown SyntaxOutput
**Bold Text**Bold Text
*Italic Text*Italic Text
[Link](https://example.com)Link
# Header 1Header 1
## Header 2Header 2
- List Item• List Item
1. Numbered Item1. Numbered Item
`Inline Code`Inline Code
`Code Block`Code Block

For example, in Markdown, to emphasize a word, you wrap it with an asterisk on both ends, like this: *emphasized*. When your writing is published, it will look like this: emphasized. Similarly, two asterisks denote strong text: **strong** will be published as strong.

To indicate links, use regular and square parentheses. Wrap the text you want to link in square parentheses, and immediately after it, insert the link target wrapped in regular parentheses. The actual Markdown could look like this: [WordPress.com](https://wordpress.com/). When published, it will be a standard link: WordPress.com.

Writing with markdown. On the left: using Markdown to compose a post in the fullscreen editor. On the right: The published post.
Examples of Markdown formatting. Note: that should be “# Writing with Markdown” to have it show as a H1

The original Markdown text you write will always remain in Markdown, so you can go back and edit it using Markdown. Only the published document – the post or the page – will be converted. If you write a post in Markdown, it will be published as a fully formatted post on your blog, but when you go back and edit it, it’ll still be in Markdown.

/markdown

Comments

Leave a Reply