1
0
mirror of https://github.com/thangisme/notes.git synced 2024-10-11 01:24:03 -04:00

Moved tests from index-test.md to linenos-test.md

This should revert the changes made to index-test.md
This commit is contained in:
PLanCompS 2020-07-06 15:04:30 +02:00
parent 74845b4a0e
commit fdaf5a276b
2 changed files with 57 additions and 33 deletions

View File

@ -33,44 +33,12 @@ var fun = function lang(l) {
```
```ruby
# Ruby code with syntax highlighting in fences
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
```
{% highlight ruby %}
# Ruby code with syntax highlighting using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}
{% capture fix_linenos_code %}{% highlight ruby linenos %}
# Ruby code with syntax highlighting and fixed line numbers using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}{% endcapture %}{% include fix_linenos.html %}{{ fix_linenos_code }}
{% comment %}
The code example below requires the following setting in `_config.yml`:
```yaml
compress_html:
ignore:
envs: all
```
{% highlight ruby linenos %}
# Ruby code with syntax highlighting and unfixed line numbers using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}
{% endcomment %}
#### [](#header-4)Header 4
* This is an unordered list following a header.

56
docs/linenos-test.md Normal file
View File

@ -0,0 +1,56 @@
---
layout: default
title: Markdown line number test
nav_order: 999
---
```
Some unknown code in fences
```
Some of the code examples below require the following setting in `_config.yml`:
```yaml
compress_html:
ignore:
envs: all
```
```js
// Javascript code with syntax highlighting in fences
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
```
```ruby
# Ruby code with syntax highlighting in fences
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
```
{% highlight ruby %}
# Ruby code with syntax highlighting using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}
{% capture code %}
{% highlight ruby linenos %}
# Ruby code with syntax highlighting and fixed line numbers using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}
{% endcapture %}
{% include fix_linenos.html code=code %}
{% assign code = nil %}
{% highlight ruby linenos %}
# Ruby code with syntax highlighting and unfixed line numbers using Liquid
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
{% endhighlight %}