-
Notifications
You must be signed in to change notification settings - Fork 111
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
Blockquote support? #455
Comments
RedNotebook uses txt2tags as markdown syntax - have you tried using tab indents for that? |
The style is embedded in the code itself. And currently there I see no way to override this. |
That's a good idea! What do you think about the following approach? We let RedNotebook write a style.css file into the data directory whenever a new journal is created. By default it contains the current CSS style. Then users can adapt the style file to their needs. If the file is missing, we recreate it with the default contents. |
Great idea! It's both flexible, and ensures that a style will be available for the user. Just in case there are less-experienced users that encounter this file and are not sure what to do with it (and, thus, might try to delete it), what if it is put into the |
I agree. Putting it into the journal folder has the advantage that different journals can have different styles. I'm not sure how important that is though. What do you guys think? |
Central folder
In the Journal Directory
I think the "in the journal directory" idea wins out. I'd just hope that it could be left hidden, so if I'm dealing with the journal directory directly (which could happen), it wouldn't get in the way, accidentally get deleted with a custom theme I made, etc. This would also keep less-advanced users from deleting it for any reason. I think it's a great idea to have a default theme as a fallback in case the theme is deleted. But, having it out of the way would be good for several reasons (if that's not too hard to code -- on Linux, I think it would be as easy as just starting the filename with a "." but on other systems, it could be harder, I'm not sure if you make RedNotebook for other platforms). |
I'm in favor of styles in journal directory too. The implementation effort should be basically the same and some people (#395) do use multiple notebooks. However I don't see a need for hiding this file - if we name it clearly (i.e. |
Thanks, guys! I agree that putting the file into the journal directory sounds like the preferable option. I also wouldn't hide the file and prefer the name |
Regardless of whether we make the style configurable, we could try to make the default style prettier. This would benefit all users, even those who don't know CSS. |
@jendrikseipp Let me know where I can contribute a style. I’m pretty good with CSS and wouldn’t mind sharing. @jendrikseipp @idle-code As a side note, my recommendation to hide it also comes from my experience working in tech consulting and the long list of problems that came from inexperienced users deleting things they didn’t understand. So long as the style will regenerate if deleted, it shouldn’t be an issue. |
@skyblue002 Perfect, I'm curious to see what you come up with :-) Here is some sample RedNotebook (txt2tags) markup:
and here is the HTML result:
Feel free to adapt the CSS and post it here or send it to me via email. |
@jendrikseipp I've done most of the CSS for a few slightly different themes. They're focused on readability and try not to distract the eye too much. I am making them to use the Liberation set of fonts, because they are freely available. (I figured that would cause fewer problems for users than relying on proprietary fonts.) I'll pass them on to you (either by e-mail or github) when they're done. What are your thoughts on the use of the color red? -- Since the app is named RedNotebook? Would you like a set of themes with that color scheme? Right now I'm using shades of blue, since they are easy on the eyes. But, let me know if you have any preference about the color red. |
A subtle touch of red would be cool, but I agree that blue is easier on the eyes. Maybe you could create two versions? |
Alright. I'm using |
I'm closing this issue since blockquote support will be added automatically if we add Markdown support via #560. |
Versions
RedNotebook version (make sure you have the latest version): 2.11.1 (
rednotebook-git
package)Operating system and version: Linux 5.3.6-1 Manjaro (Arch derivative) x86_64
Expected behavior
Using ">" at the beginning of a line results in blockquote formatting when previewing the text.
Actual behavior
There doesn't seem to be any support for blockquotes. When using the markdown, then previewing, the ">" characters are left visible and there is no blockquote formatting.
(It seems like maybe this feature just isn't implemented. It would be a great feature to have in a journal, since some people (myself included) like to include interesting or inspirational quotes when journaling. If this isn't a feature yet, may I please suggest it be added in a future release?)
Steps to reproduce the behavior
Add lines starting with ">" then press
Preview
, and the lines are not formatted like blockquotes.Log output when reproducing behavior
There is nothing relevant in the log. It registered past instances of saving, nothing relevant to formatting blockquotes.
The text was updated successfully, but these errors were encountered: