Modifying the PRE and RAW Styles + Provide a Docker build environment #169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@davidgiven,
Thank you so much for this fantastic tool we can use to write from the comforts of our own terminal. In general, I do a lot of technical writing in my day job and also on my personal blog. I modified the RAW and Preformatted text styles so they are visually distinct from the surrounding plain text. This way, users can tell they have applied the given style to the selected area and improve readability.
Another area that I think would be very helpful is if WordGrinder supported inline preformatted text. For example, in my technical writings I often blurbs like the following:
WordGrinder is a free and opensource word processor for your terminal. To start wordgrinder, simply execute the
wordgrinder
command followed by any additional arguments..To get around this, since I simply export most of my documents to markdown, I removed the substitution filter from the markdown export for backticks. This allows me to use to surround the in-line preformatted text with backticks and once exported to markdown, gives me the desired result. However, this is a work around. I tried implementing a preformatted text style similar to the way you did with bold, italic, and underline but I got lost between the C and LUA code. Everything blew up and I just reverted the change. Is this something you'd consider implementing in the future?
Finally, I am contributing a Dockerfile that will allow users to build wordgrinder inside of a Docker container. You can also run wordgrinder containerized and completely isolated from other processes on your system using this approach. I do containers for a living, so I like to containerize everything I can 👍
Let me know if you'd be interested in incorporating these changes. I really appreciate the work you do!