kramdown adjustments
This commit is contained in:
@ -42,6 +42,7 @@ audience: writers
|
||||
On a page in my site (it can be HTML or markdown), I can conditionalize content using the following:
|
||||
|
||||
{% raw %}
|
||||
|
||||
```liquid
|
||||
{% if site.audience == "writers" %}
|
||||
The writer audience should see this...
|
||||
@ -49,6 +50,7 @@ The writer audience should see this...
|
||||
The designer audience should see this ...
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
This uses simple `if-elsif` logic to determine what is shown (note the spelling of `elsif`). The `else` statement handles all other conditions not handled by the `if` statements.
|
||||
|
@ -10,6 +10,7 @@ weight: 9
|
||||
---
|
||||
|
||||
{{site.data.alerts.tip}} More details about generating PDFs are listed in {{site.data.mydoc.mydoc_urls.mydoc_generating_pdfs.link}}. {{site.data.alerts.end}}
|
||||
|
||||
## Install Prince XML
|
||||
|
||||
Prince XML is a utility I've decided to use to create PDFs. The Prince XML utility requires a list of web pages from which it can construct a PDF.
|
||||
|
@ -6,7 +6,7 @@ last_updated: November 30, 2015
|
||||
summary: "You can apply syntax highlighting to your code. This theme uses pygments and applies color coding based on the lexer you specify."
|
||||
---
|
||||
|
||||
|
||||
{% comment %}
|
||||
## About syntax highlighting
|
||||
For syntax highlighting, use fenced code blocks optionally followed by the language syntax you want:
|
||||
|
||||
@ -52,16 +52,14 @@ It renders the same:
|
||||
The theme has syntax highlighting specified in the configuration file as follows:
|
||||
|
||||
```
|
||||
highlighter: pygments
|
||||
highlighter: rouge
|
||||
```
|
||||
|
||||
You can use another highlighter such as `rouge`.
|
||||
|
||||
The syntax highlighting is done via the css/syntax.css file.
|
||||
{% endcomment %}
|
||||
## Available lexers
|
||||
|
||||
## Available Pygments lexers
|
||||
|
||||
The keywords you must add to specify the highlighting (in the previous example, `ruby`) are called "lexers." You can search for "pygments lexers" or go directly to [Available lexers](http://pygments.org/docs/lexers/) to see what values you can use. Here are some common ones I use:
|
||||
The keywords you must add to specify the highlighting (in the previous example, `ruby`) are called "lexers." You can search for "lexers." Here are some common ones I use:
|
||||
|
||||
* js
|
||||
* html
|
||||
|
Reference in New Issue
Block a user