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

Style Kramdown's syntax highlighter line numbers. #12

Open
neizod opened this issue Oct 22, 2018 · 0 comments
Open

Style Kramdown's syntax highlighter line numbers. #12

neizod opened this issue Oct 22, 2018 · 0 comments

Comments

@neizod
Copy link
Owner

neizod commented Oct 22, 2018

First, append this into _config.yml:

kramdown:
  syntax_highlighter_opts:
    block:
      line_numbers: true

(or find other means to enable line number per code block.)

Observe that output HTML wrap <pre><code> with <table>, which now render ugly. Try to fix this issue without altering normal <table>.

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

No branches or pull requests

1 participant