-
AuthorPosts
-
February 5, 2024 at 7:03 pm #14215Vignesh SweekaranParticipant
Hi Aakash,
When I try to edit the pages created by GIW, by default it uses classic editor. while editing it asks me to convert to blocks.
I am using code block from theme, that is working only if I change to block editor. For now I need to edit all page to convert to block and save.
How can I default configure the blocks editor for all pages created by GIW.
Thanks
Vignesh SweekaranFebruary 6, 2024 at 11:27 pm #14233Aakash ChakravarthyKeymasterHi Vignesh,
The expectation with GIW plugin is that, post content must not be edited from the editor.
The plugin sets the post content as is.
Even blocks are represented as normal HTML. You can learn about it here – https://developer.wordpress.org/block-editor/getting-started/fundamentals/markup-representation-block/
So if you follow the same block syntax in your markdown file, you will get the blocks in block editor.
Thanks,
AakashFebruary 7, 2024 at 4:53 pm #14240Vignesh SweekaranParticipantHi Aakash,
Thanks for sharing the details.
Currently my markdown file looks like this eg: git.md
Run the following command to install git in ubuntu operating system
`
sudo apt update
sudo apt install git
`
For using with block editor compatible, I need to do the following changes.
<!– wp:paragraph –>
Run the following command to install git in Centos operating system</p>
<!– /wp:paragraph –><!– wp:code –>
sudo yum update sudo yum install git
<!– /wp:code –>
This looks like lot of effort for writing the content in markdown file.
February 7, 2024 at 11:36 pm #14244Aakash ChakravarthyKeymasterHi Vignesh,
I understand the requirement. But may I know what is the advantage of this?
The main idea is that users write posts in markdown format, version control and collaborate on Github. The markdown format is converted to HTML and set as post content.
The update should be one way where the posts created with markdown shouldn’t be edited using wordpress editor.
Thanks,
AakashFebruary 8, 2024 at 4:48 pm #14258Vignesh SweekaranParticipantHi Aakash,
I also don’t prefer using Classic or Block editor, I too prefer one way via markdown.
I am using block theme. The GIW converts to html as classic editor way. So not able to use the features of block theme. In the block theme, the code block looks very nice.
I found one solution to convert to block using this plugin https://wordpress.org/plugins/convert-to-blocks/
Please let me know if you have any other options.
Thanks,
VigneshFebruary 8, 2024 at 4:49 pm #14259Vignesh SweekaranParticipantHi Aakash,
More information about my project. Currently I am using Jekyll with plain markdown files https://github.com/vigneshsweekaran/vigneshsweekaran.github.io
Website: https://devopspilot.comI am migrating to wordpress now.
Thanks,
VigneshFebruary 9, 2024 at 12:05 am #14262Aakash ChakravarthyKeymasterLooks excellent. Good luck!
Regarding converting to blocks, right now the plugin does not do anything special for blocks. It sets the post content in classic HTML mode.
Adding support for block format would need significant changes. I’ll keep this in my todo list and try to see how this can done.
For now please proceed with any other solution.
Thanks,
AakashFebruary 9, 2024 at 12:12 am #14249Vignesh SweekaranParticipantHi Aakash,
I also don’t want to edit the post via Classic or Block editor. I too prefer the one way from markdown file.
Currently I use Jekyll with just plain markdown files https://github.com/vigneshsweekaran/vigneshsweekaran.github.io
Website: https://devopspilot.comNow I am migrating to WordPress, want to use the same markdown approach.
But the problem is I am using Greenshift WordPress theme https://wordpress.org/themes/greenshift/ which is a Block theme.
Im my markdown files I am using command highlighter like below
`
sudo apt update
sudo apt install git
`
It is not properly converting as per the Theme blocks. The code block in the Greenshift Theme is very nice.
Currently the markdown is converted to html as Classic editor way. So some features of the block are not available.
For now I found this plugin https://wordpress.org/plugins/convert-to-blocks/ to convert to block, so code block applies
Please let me know If any other options available.
Thanks,
Vignesh Sweekaran -
AuthorPosts
- You must be logged in to reply to this topic.