Skip to content

Commit 5b8b07b

Browse files
committed
[GR-45633] Fix markdown rendering issues.
PullRequest: graalpython/2734
2 parents 6cdff55 + 3c56916 commit 5b8b07b

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

docs/user/Interoperability.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,26 @@ You can import a global value from the entire polyglot scope:
3838
```
3939

4040
This global value should then work as expected:
41+
4142
* Accessing attributes assumes it reads from the `members` namespace.
42-
```python
43-
>>> ruby_polyglot.to_s
44-
<foreign object at ...>
45-
```
43+
```python
44+
>>> ruby_polyglot.to_s
45+
<foreign object at ...>
46+
```
4647

47-
* Calling methods on the result tries to do a straight invoke and falls
48-
back to reading the member and trying to execute it.
49-
```python
50-
>>> ruby_polyglot.to_s()
51-
Polyglot
52-
```
48+
* Calling methods on the result tries to do a straight invoke and falls back to reading the member and trying to execute it.
49+
```python
50+
>>> ruby_polyglot.to_s()
51+
Polyglot
52+
```
5353

5454
* Accessing items is supported both with strings and numbers.
55-
```python
56-
>>> ruby_polyglot.methods()[10] is not None
57-
True
58-
```
55+
```python
56+
>>> ruby_polyglot.methods()[10] is not None
57+
True
58+
```
5959

60-
You can export some object from Python to other supported languages so they can import
61-
it:
60+
You can export some object from Python to other supported languages so they can import it:
6261
```python
6362
>>> foo = object()
6463
>>> polyglot.export_value(value=foo, name="python_foo")
@@ -77,7 +76,7 @@ In this case the function name is used as the globally exported name:
7776
```
7877

7978
Here is an example of how to use the JavaScript regular expression engine to
80-
match Python strings.
79+
match Python strings:
8180
```python
8281
>>> js_re = polyglot.eval(string="RegExp()", language="js")
8382

@@ -101,7 +100,7 @@ To run this example, first install the required R library:
101100
R -e 'install.packages("https://www.rforge.net/src/contrib/jpeg_0.1-8.tar.gz", repos=NULL)'
102101
```
103102

104-
This example also uses [image_magix.py](http://graalvm.org/docs/examples/image_magix.py) and works
103+
This example also uses [image_magix.py](https://www.graalvm.org/resources/img/python/image_magix.py) and works
105104
on a JPEG image input (you can try with [this image](https://www.graalvm.org/resources/img/python_demo_picture.jpg)). These files have to be in the same folder that the script below is located in and executed from.
106105
```python
107106
import polyglot

0 commit comments

Comments
 (0)