bowtie-co / houndstooth-ui

A Free CMS for Jekyll and Github
https://houndstooth.work
Apache License 2.0
21 stars 2 forks source link

Unable to read CommonMark markdown styles #40

Open theWhiteWulfy opened 5 years ago

theWhiteWulfy commented 5 years ago

Describe the bug Hey! I found this new Jekyll CMS yesterday. I'm currently using prose.io, I tried to edit my existing blog, but the editor pane could not recognize existing formatting such as bold, Italic, codeblocks or new lines.

To Reproduce Steps to reproduce the behavior:

  1. fork my repo oxyenyos/blog
  2. open a post in your CMS
  3. See error

Expected behavior I expect for any cms to at least show formatting or the current raw, and not remove it.

Screenshots CMS View image raw view image

Desktop (please complete the following information):

Additional context Any help would be gladly appreciated. If you can help to get this to work it would be great! I have experience in embedding and using prose editor and react, I maybe could fix this in my spare time.

Thanks!!

tbrandle commented 5 years ago

@Oxyenyos Thanks for posting the issue. Supporting both html and markdown in the wysiwyg is a feature we will certainly support in the near future, but currently do not support. The wysiwyg we are using automatically converts content to HTML. We will need to create a separate, isolated markdown editor to handle the content appropriately.

I would recommend editing your markdown in the File Editor. If you click the File Editor button in the top right while you are on the collection item you wish to edit, you will see the markdown in the text editor. When you click save, the changes will be staged so you need to commit as well. All of this can be done in the UI.

If you have some experience in React and some ideas of best ways to solve this problem, feel free to open up a PR!

theWhiteWulfy commented 5 years ago

I would suggest instead of building wysiwyg editor, you could have a look at prosemirror, https://github.com/ProseMirror/prosemirror for that, then build what you want over that. How does that sound?