Skip to content

Commit 86ff3e0

Browse files
jvmvikclaude
andcommitted
docs: fix the demo code fence and list markdown() in the method table
The demo block opened as ```javapublic, fusing the fence and the first line of code, so the block was tagged with a bogus "javapublic" language and lost its highlighting. The stray "public" was not in the source either: demo App is declared "class App", package-private. markdown() was also absent from the migration table, which is the closest thing the README has to a list of the client's methods. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent a297cea commit 86ff3e0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ make all SERPAPI_KEY='<your private key>'
4343
Use quotes if your key contains shell-special characters. You need a SerpApi account to obtain a key: https://serpapi.com/dashboard
4444

4545
`demo/src/main/java/demo/App.java`:
46-
```javapublic
46+
```java
4747
class App {
4848
public static void main(String[] args) {
4949
String apiKey = System.getenv("SERPAPI_KEY");
@@ -577,6 +577,7 @@ implementation 'com.github.serpapi:serpapi-java:1.2.0'
577577
| `SerpApiSearch` | `SerpApi` |
578578
| `client.getJson()` | `client.search(parameter)` |
579579
| `client.getHtml()` | `client.html(parameter)` |
580+
|| `client.markdown(parameter)` — new in 1.2.0, see [Markdown output](#markdown-output) |
580581
| `client.getSearchArchive(id)` | `client.searchArchive(id)` |
581582
| `client.getAccount()` | `client.account()` |
582583
| `client.getLocation(parameter)` | `client.location(parameter)` |

README.md.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ make all SERPAPI_KEY='<your private key>'
6565
Use quotes if your key contains shell-special characters. You need a SerpApi account to obtain a key: https://serpapi.com/dashboard
6666

6767
`demo/src/main/java/demo/App.java`:
68-
```javapublic
68+
```java
6969
class App {
7070
public static void main(String[] args) {
7171
String apiKey = System.getenv("SERPAPI_KEY");
@@ -318,6 +318,7 @@ implementation 'com.github.serpapi:serpapi-java:1.2.0'
318318
| `SerpApiSearch` | `SerpApi` |
319319
| `client.getJson()` | `client.search(parameter)` |
320320
| `client.getHtml()` | `client.html(parameter)` |
321+
| — | `client.markdown(parameter)` — new in 1.2.0, see [Markdown output](#markdown-output) |
321322
| `client.getSearchArchive(id)` | `client.searchArchive(id)` |
322323
| `client.getAccount()` | `client.account()` |
323324
| `client.getLocation(parameter)` | `client.location(parameter)` |

0 commit comments

Comments
 (0)