Skip to content

Commit 211cad9

Browse files
committed
fix: doc generation
1 parent bf65509 commit 211cad9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/protons/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To protect decoders from malicious payloads, it's possible to limit the maximum
8888

8989
You can either do this at compile time by using the [protons.options](https://github.com/protocolbuffers/protobuf/blob/6f1d88107f268b8ebdad6690d116e74c403e366e/docs/options.md?plain=1#L490-L493) extension:
9090

91-
```protobuf
91+
```
9292
message MyMessage {
9393
// repeatedField cannot have more than 10 entries
9494
repeated uint32 repeatedField = 1 [(protons.options).limit = 10];
@@ -113,7 +113,7 @@ const message = MyMessage.decode(buf, {
113113

114114
Sub messages with repeating elements can be limited in a similar way:
115115

116-
```protobuf
116+
```
117117
message SubMessage {
118118
repeated uint32 repeatedField = 1;
119119
}
@@ -137,7 +137,7 @@ const message = MyMessage.decode(buf, {
137137

138138
Sub messages defined in repeating elements can be limited by appending `$` to the field name in the runtime limit options:
139139

140-
```protobuf
140+
```
141141
message SubMessage {
142142
repeated uint32 repeatedField = 1;
143143
}
@@ -162,7 +162,7 @@ const message = MyMessage.decode(buf, {
162162

163163
Repeating fields in map entries can be limited by appending `$value` to the field name in the runtime limit options:
164164

165-
```protobuf
165+
```
166166
message SubMessage {
167167
repeated uint32 repeatedField = 1;
168168
}
@@ -191,7 +191,7 @@ Sometimes this is undesirable due to [performance issues](https://betterprogramm
191191

192192
It's possible to override the JavaScript type 64 bit fields will deserialize to:
193193

194-
```protobuf
194+
```
195195
message MyMessage {
196196
repeated int64 bigintField = 1;
197197
repeated int64 numberField = 2 [jstype = JS_NUMBER];

packages/protons/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*
6868
* You can either do this at compile time by using the [protons.options](https://github.com/protocolbuffers/protobuf/blob/6f1d88107f268b8ebdad6690d116e74c403e366e/docs/options.md?plain=1#L490-L493) extension:
6969
*
70-
* ```protobuf
70+
* ```
7171
* message MyMessage {
7272
* // repeatedField cannot have more than 10 entries
7373
* repeated uint32 repeatedField = 1 [(protons.options).limit = 10];
@@ -92,7 +92,7 @@
9292
*
9393
* Sub messages with repeating elements can be limited in a similar way:
9494
*
95-
* ```protobuf
95+
* ```
9696
* message SubMessage {
9797
* repeated uint32 repeatedField = 1;
9898
* }
@@ -116,7 +116,7 @@
116116
*
117117
* Sub messages defined in repeating elements can be limited by appending `$` to the field name in the runtime limit options:
118118
*
119-
* ```protobuf
119+
* ```
120120
* message SubMessage {
121121
* repeated uint32 repeatedField = 1;
122122
* }
@@ -141,7 +141,7 @@
141141
*
142142
* Repeating fields in map entries can be limited by appending `$value` to the field name in the runtime limit options:
143143
*
144-
* ```protobuf
144+
* ```
145145
* message SubMessage {
146146
* repeated uint32 repeatedField = 1;
147147
* }
@@ -170,7 +170,7 @@
170170
*
171171
* It's possible to override the JavaScript type 64 bit fields will deserialize to:
172172
*
173-
* ```protobuf
173+
* ```
174174
* message MyMessage {
175175
* repeated int64 bigintField = 1;
176176
* repeated int64 numberField = 2 [jstype = JS_NUMBER];

0 commit comments

Comments
 (0)