Skip to content

Commit aa06792

Browse files
authored
Merge pull request creativecommons#226 from SaurabhAgarwala/add_syntax_highlight
Add syntax highlight
2 parents 13c8837 + cc1b487 commit aa06792

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.lektorproject

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ lektor-disqus-comments = 0.4.1
1212
lektor-google-analytics = 0.1.3
1313
lektor-markdown-excerpt = 0.1
1414
lektor-markdown-header-anchors = 0.3.1
15+
lektor-markdown-highlighter = 0.3.1
1516
lektor-strip-html-tags = 0.3.1
1617
lektor-webpack-support = 0.5

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ Here's how the code is structured in the top level of the repository:
129129
excerpt
130130
- [lektor/lektor-markdown-header-anchors][md-header]: Adds support for
131131
anchors and table of contents to Markdown
132+
- [lektor/lektor-markdown-highlighter][md-highlighter]: Adds support for
133+
syntax highlighting in Markdown and templates
132134
- [terminal-labs/lektor-strip-html-tags][striphtml]: Strip HTML tags,
133135
effectively turning HTML into plain text
134136
- [lektor/lektor-webpack-support][webpacksupport]: Adds webpack support to
@@ -140,6 +142,7 @@ Here's how the code is structured in the top level of the repository:
140142
[lektorga]: https://github.com/kmonsoor/lektor-google-analytics
141143
[mdexcerpt]: https://github.com/bancek/lektor-markdown-excerpt
142144
[md-header]: https://github.com/lektor/lektor-markdown-header-anchors
145+
[md-highlighter]: https://github.com/lektor/lektor-markdown-highlighter
143146
[striphtml]: https://github.com/terminal-labs/lektor-strip-html-tags
144147
[webpacksupport]: https://github.com/lektor/lektor-webpack-support
145148

configs/markdown-highlighter.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pygments]
2+
style = tango

templates/layout.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
66
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
77
<link rel="stylesheet" href="{{ '/static/gen/style.css'|url }}">
8+
<link rel="stylesheet" href="{{ get_pygments_stylesheet()|url }}">
89
<meta property="og:site_name" content="Creative Commons" />
910
<meta property="og:title" content="{{ this.title }}" />
1011
{% if this.description %}

0 commit comments

Comments
 (0)