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

Use consistent markdown for all code examples #24

Closed
stomar opened this issue Feb 12, 2013 · 3 comments
Closed

Use consistent markdown for all code examples #24

stomar opened this issue Feb 12, 2013 · 3 comments
Assignees

Comments

@stomar
Copy link
Contributor

stomar commented Feb 12, 2013

Some code examples are defined using the {{ highlight xy }} tag in the markdown files, some are defined using code blocks with attribute lists, like {: .code .bash-code}, some are defined as plain code blocks. This results in differently structured html.

Consistent syntax would simplify the CSS.

@stomar
Copy link
Contributor Author

stomar commented Feb 12, 2013

Examples:

  1. highlighted: home page, Ruby in 20 minutes
  2. attribute list: libraries page
  3. plain code block: about page (-> no css style)

@ghost ghost assigned stomar Feb 18, 2013
@stomar
Copy link
Contributor Author

stomar commented Feb 18, 2013

I'm experimenting with converting all Ruby/Bash code blocks to Jekyll highlighted code blocks during the import task (by using the existing CSS classes). For non-highlighted code blocks {: .code} should be used.

@stomar
Copy link
Contributor Author

stomar commented Feb 19, 2013

Closed with 6f429c9.

Use attribute {: .code} for "generic" code (like output, mailing list subscription command), else use the highlight tag, specifying the language.

@stomar stomar closed this as completed Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant