-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Parser does not appear to be working correctly anymore??? Help needed! #326
Comments
@BE-Webdesign This is expected. Previously the markup was not being parsed at all. It was simply assigned as the Now that there's some basic behaviors around block parsing, we'll need to continue implementing and fleshing out blocks. If you're interested, I'd invite you to take a stab at one of them, using the text block and proposed block APIs as a base. |
@aduth Okay, now it makes sense. The parsing is basically super strict right now? There will need to be a way to grab raw stuff as HTML though, or else it will be pretty hard if not impossible to have What is the plan for handling tags inside of react components? I think avoiding using dangerouslySetInnerHTML is a good thing. Are we going to parse block content into more components recursively or what is the plan? |
More accurately the parsing barely exists, and hadn't existed at all previously. What you were seeing before was simply the default behavior of
Right, we'll need to explore some fallback options for content which can't be matched to a registered block. This might either be some transparent upgrade (
I think the only case I've seen so far where we'll need this kind of behavior is for rich text, which will be handled by TinyMCE (i.e. hopefully won't need |
Maybe we are interpreting parsing to mean two different things. Previously
Sounds like a great solution. |
Hi, after doing a rebase for a PR I was going to submit, the parser did not have the same functionality. The code I had running before was pre
hpq
maybe that is the culprit? Can anyone verify the same behavior seen below? It seems that the parser went from parsing 8 blocks or so down to only 3 on a clean version of master, while parsingpost-content.js
.If you are experiencing the same thing, please let me know as I am stumped, I was told that things were building properly, so I have no idea what is wrong. Here is an image below of the parsed
post-content.js
I am seeing after runningFor the gutenberg plugin directory. Now the markup which used to feature images etc. Looks like this:
Notice some of the html tags are escaped as well because there is now a react component handling things.
Previously I was able to get a front end editor running which parsed correctly like this:
But now the parser seems broken to me? Help!
The text was updated successfully, but these errors were encountered: