Skip to content

Commit ad9a3b9

Browse files
committed
convert liquid syntax markup to fence
1 parent d485864 commit ad9a3b9

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

docs/_methods/init_options.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permalink: /methods/init_options/
66

77
### init_options method ###
88
Need not called directly if using [WorldBuilder][world_builder]
9-
{% highlight ruby %}
9+
```ruby
1010
def init_options(args = {})
1111
args = defaults.merge(args)
1212
set_options(args[:scale],
@@ -15,14 +15,14 @@ def init_options(args = {})
1515
args[:continuous]
1616
)
1717
end
18-
{% endhighlight %}
18+
```
1919

2020
### related default options ###
2121
Provides defaults for init_options
22-
{% highlight ruby %}
22+
```ruby
2323
def defaults
2424
{ scale: 10.0, gravity: [0, -10], warm: true, continuous: true }
2525
end
26-
{% endhighlight %}
26+
```
2727

2828
[world_builder]:{{ site.github.url }}/modules/world_builder/

docs/_methods/processing_to_world.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public Vec2 processingToWorld(float pixelX, float pixelY) {
1616
float worldY = map(pixelY, parent.height / 2, parent.height / 2 + scaleFactor, 1f, 0f);
1717
return new Vec2(worldX, worldY);
1818
}
19-
{% endhighlight %}
19+
```
2020
2121
### Ruby usage ###
2222
Use camel case
23-
{% highlight ruby %}
23+
```ruby
2424
processing_to_world(x, y) # returns new Vec2 instance (in the PBox2D world)
25-
{% endhighlight %}
25+
```
2626

2727
[pbox2d]:{{ site.github.url }}/classes/pbox2d/
2828
[world_to_processing]:{{ site.github.url }}/methods/world_to_processing/

docs/_methods/scale_to_processing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ The java code ([PBox2D][pbox2d] inherits this from [Box2DProcessing][pbox2d])
1111
public float scaleToProcessing(float val) {
1212
return val * scaleFactor;
1313
}
14-
{% endhighlight %}
14+
```
1515
1616
### Ruby usage ###
1717
Use camel case
18-
{% highlight ruby %}
18+
```ruby
1919
scale_to_processing(val)
20-
{% endhighlight %}
20+
```
2121

2222
[pbox2d]:{{ site.github.url }}/classes/pbox2d/
2323
[world_to_processing]:{{ site.github.url }}/methods/world_to_processing/

docs/_methods/scale_to_world.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public Vec2 scaleToWorld(float pixelX, float pixelY) {
1616
float worldY = map(pixelY, parent.height / 2, parent.height / 2 + scaleFactor, 1f, 0f);
1717
return new Vec2(worldX, worldY);
1818
}
19-
{% endhighlight %}
19+
```
2020
2121
### Ruby usage ###
2222
Use camel case
23-
{% highlight ruby %}
23+
```ruby
2424
scale_to_world(x, y) # returns new Vec2 instance (in the PBox2D world)
25-
{% endhighlight %}
25+
```
2626

2727
[pbox2d]:{{ site.github.url }}/classes/pbox2d/
2828
[world_to_processing]:{{ site.github.url }}/methods/world_to_processing/

docs/_methods/world_to_processing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ public Vec2 worldToProcessing(float worldX, float worldY) {
1717
float pixelY = map(worldY, 1f, 0f, parent.height / 2, parent.height / 2 + scaleFactor);
1818
return new Vec2(pixelX, pixelY);
1919
}
20-
{% endhighlight %}
20+
```
2121
2222
### Ruby usage ###
2323
Use camel case
24-
{% highlight ruby %}
24+
```ruby
2525
world_to_processing(x, y) # returns new Vec2 instance (in processing world)
26-
{% endhighlight %}
26+
```
2727

2828
[pbox2d]:{{ site.github.url }}/classes/pbox2d/
2929
[processing_to_world]:{{ site.github.url }}/methods/processing_to_world/

0 commit comments

Comments
 (0)