Skip to content
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

"Logseq doesn't support multiple unordered lists or headings in a block." #125

Open
thams opened this issue Sep 21, 2023 · 5 comments
Open

Comments

@thams
Copy link
Contributor

thams commented Sep 21, 2023

OpenAI often returns text that looks like MD but trips up LogSeq. Then LogSeq doesn't display the response correctly, and gives a warning: "Full content not displayed; Logseq doesn't support multiple unordered lists or headings in a block."

To reproduce:

ask GPT "Create a study guide for learning large language model AI"

The response will be something like this:

1. Fundamentals of Artificial Intelligence
   - Understand the basic concepts, principles, and applications of artificial intelligence.
   - Familiarize yourself with different types of AI, including machine learning, deep learning, and natural language processing.

2. Introduction to Language Models
   - Learn about the purpose and functionality of language models.
   - Explore various types of language models, including rule-based approaches and statistical models.

Which shows up in Logseq like this:

Logseq

Unsure what the solution is. Replacing GPTs leading dashes with double-dashes might be the trick, but that might screw things up elsewhere.

@usoonees
Copy link
Contributor

Use split-block plugin https://github.com/hyrijk/logseq-plugin-split-block
image

Result

image

@thams
Copy link
Contributor Author

thams commented Oct 22, 2023

split-block works!

Would still be nice to have something that pre-parses GPT's responses in a way that is LogSeq friendly.

@jumski
Copy link

jumski commented Nov 16, 2023

Split block indeed works and is a nice workaround.

But wondering the same as @thams - is it possible to output multiple blocks or trigger the split block plugin (if available) after creating a single block with unordered lists?

@thams
Copy link
Contributor Author

thams commented Nov 16, 2023

I'm working on a pull request that would (optionally) parse the result and replace the unsupported leading dashes.

Would also make sense to simply add post-processing hooks that could do such things as trigger Split block or some arbitrary other tool.

@bynr
Copy link

bynr commented Jun 6, 2024

Adding for reference for people looking for a simple solution that renders well.

I added this to the chat prompt:

Bullet points should use "*" and never "-".

Works like a charm if you are ok with the output to be within a single block!
Screenshot from 2024-06-06 11-56-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants