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

Unable to escape hyphen inside a blopckquote #6

Closed
Not-a-web-Developer opened this issue Jun 27, 2022 · 3 comments
Closed

Unable to escape hyphen inside a blopckquote #6

Not-a-web-Developer opened this issue Jun 27, 2022 · 3 comments

Comments

@Not-a-web-Developer
Copy link

First of all, Teeny is almost perfect for my needs! it's simple to understand, and does exactly what I want it to (except for one case, but that's what I'm here for)

now, for the problem. I want to add a hyphen in the beginning of a line in a blockquote. I'll be using motherfuckingwebsite as an example of where this is used (because why not):

the markdown:
image

expected behaviour:
image

actual behaviour:
image

after seeing this, I thought "this is easy to fix, let's just escape the hyphen (\- instead of -) so that teeny doesn't think of it as a bullet point"; however, escaping the hyphen makes it disappear entirely:
image


I don't really know how this can be fixed, which is why i'm opening an issue and not a PR. I hope this is fixable, and if not (or if it doesn't fit in the scope of teeny), you can close the issue.

once again, thanks for making this! It may have started as a personal tool duct-taped together in a couple of hours, but something with this simplicity is a breath of fresh air.

@yakkomajuri
Copy link
Owner

@Not-a-web-Developer

Sorry for the delay here and thanks for this!

Unfortunately this is not explicit Teeny behavior but rather how the dependencies behave.

I wonder if using a dash (—) rather than a hyphen (-) is a valid (albeit hacky) solution to your problem?

@Not-a-web-Developer
Copy link
Author

Thanks for the reply!

A dash instead of a hyphen works well enough for my use case; as for the problem being caused by a dependency (in this case i assume it's one of Marked's idiosyncrasies), I'll see if i can get it fixed upstream.

Thanks for replying! It's been taking longer than I'd like to shift my blog over to teeny because real life gets in the way, but the tool has been perfect for me.

@yakkomajuri
Copy link
Owner

I'm glad to hear this is actually useful to someone beyond me. Also happy the dash works for now

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

2 participants