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
Weird paragraph structure / line breaks(gatsby-transformer-orga) #73
Comments
|
@thomasheartman yeah, I have noticed it, and it should be fixed by this change. It's published, please try again. |
|
Oh, nice! I couldn't find release 2.2.4 on npm, though: the latest version is 2.2.3. Is 2.2.4 on the way up or did something go wrong with the publishing process? I tried using 2.2.3, but got a build error due to a missing module (I'm guessing it's the one referenced in this commit). |
|
Yeah, sorry about the mess, you caught me doing "testing in production" |
|
I tried again today with versions 2.2.4 and 2.2.5, but both failed with the same reason. Here's the Netlify build log failure: Is this the same issue you've been working on or is it unrelated? And thanks for the link to the new starter project. It looks nice! It's also good to get some default file properties to work with. One thing I thought of is that in the 'About Your Org Files ...' post, you mention that you can change which headlines should be published based on the Sorry if that became a bit rambly, but these are things I thought of when reading that paragraph. |
|
Ah! I had that problem too while migrating my existing projects. That is an odd issue that caused by a breaking change in the dependency chain within the unified ecosystem. The fix is to delete the Good suggestions on the documentation. It's pretty new, I will try to make it more explicit in the details. Exactly the kind of feedback I need. Cheers. It actually supports |
|
I tried deleting the package-lock, but it didn't make a difference, I'm afraid: I'm still getting the same error. Could there be some other reason that I'm getting this? My package.json has these versions set: "gatsby-transformer-orga": "^2.2.5",
"orga": "^2.2.0",And I'm not sure I understand what you mean by 'it's not for filtering posts, it's for selecting sections to export'. Isn't that exactly what |
|
Try to do this in your project The tag properties are exactly matching the functionality in org-mode. What I mean by "not for filtering posts" is that the tags are not for deciding whether to publish that section into a post or not. Because you can publish sections into individual posts, |
|
If I manually install There's a new problem, though: There seems to have been a breaking change in between 2.0.0 and 2.2.9, because my graphql queries are suddenly broken now: And this:
Has there been an update to how you add custom fields to the Metadata object? It's been a while since I touched this stuff, but it built just fine on version 2.0.0 of the gatsby-transformer-orga package. |
It seems that the orga-gatsby-transformer breaks paragraphs on single line breaks or otherwise incosistently. As someone who uses
auto-fill-modein Emacs, this is unexpected. Is this intentional or is it a bug?As a clearer example, this following bit of text:
is rendered as this:
which is this HTML:
This shows that the above two paragraphs are broken into five
<p>elements and it's not entirely obvious to me how the algorithm works here. For instance, the last (org) paragraph is five lines, but it's broken up into three paragraphs, where the first two paragraphs contain two lines, and the last one contains one. The first org paragraph is broken into two separate paragraphs, one for each line.This appears to have been introduced in a recent version of Orga (or or the gatsby-transformer), probably v2.
Thanks!
The text was updated successfully, but these errors were encountered: