Skip to content

Adding a span around code blocks that start with $ #78

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

Merged
merged 2 commits into from
Mar 19, 2021

Conversation

weaverryan
Copy link
Contributor

Fixes #68

@wouterj
Copy link
Contributor

wouterj commented Mar 18, 2021

Let's make it a bit more difficult Ryan 😉. The python terminal lexer we're using also takes care of some other (windows & comments) highlights: https://github.com/symfony/symfony-docs/blob/5.x/_build/_exts/symfonycom/sphinx/lexer.py

@weaverryan
Copy link
Contributor Author

Let's make it a bit more difficult Ryan

Oh, boooooo. You got me Wouter! 😆

@weaverryan
Copy link
Contributor Author

Ok, should be better now. This may not imitate exactly what the old one does. But... we can basically do whatever we want. The test case holds all the scenarios and markup... and we can add more - https://github.com/weaverryan/docs-builder/pull/78/files#diff-ffe40345fc14908fa9ef0846da05ce80b3398903e81e02c5363c21451346adea

Copy link
Collaborator

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! No more CSS/JS hacks 🙈

@weaverryan weaverryan merged commit 53288a5 into master Mar 19, 2021
@weaverryan weaverryan deleted the terminal-start-wrapper branch March 19, 2021 16:33
@weaverryan
Copy link
Contributor Author

Yay! And if we need further tweaks, as you can see, it should be easy :)

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

Successfully merging this pull request may close these issues.

Mark prompts differently in terminal/console blocks
3 participants