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

Improve handling of fenced code blocks #142

Open
cpbotha opened this issue Dec 1, 2016 · 3 comments
Open

Improve handling of fenced code blocks #142

cpbotha opened this issue Dec 1, 2016 · 3 comments

Comments

@cpbotha
Copy link
Owner

cpbotha commented Dec 1, 2016

It looks like the simplenote web-app only has weak support for fenced code blocks. For example, I can't specify the language like I can here on github.

Investigate what's possible, get nvpy to do a little more. Look to nvalt for inspiration.

Some notes:

  • simplenote supports triple-tilde fences, python markdown does not by default. Urgh.
@bk
Copy link

bk commented Jan 28, 2017

How about Trent Mick's python-markdown2 library? It has fenced code blocks with syntax highlighting as well as a few other nice extensions.

@cpbotha
Copy link
Owner Author

cpbotha commented Jan 30, 2017

For the HTML output, this would be a good candidate.

However, we also need something to do partial real-time syntax highlighting in the nvpy tk interface. (text control)

@bk
Copy link

bk commented Jan 30, 2017

So this is a question of extending the current functionality of activate_markdown_highlighting?

I assume you've already taken a look at using the Pygments lexer for marked code blocks and simply applying colours to the text according to the token types it finds?

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