File tree Expand file tree Collapse file tree 2 files changed +3
-28
lines changed Expand file tree Collapse file tree 2 files changed +3
-28
lines changed Original file line number Diff line number Diff line change 2
2
import { z } from " astro:schema" ;
3
3
import { indexPlans } from " ~/util/plans" ;
4
4
import { marked } from " marked" ;
5
- import GlossaryTooltip from " ~/components/GlossaryTooltip.astro" ;
6
5
7
6
type Props = z .infer <typeof props >;
8
7
@@ -46,33 +45,9 @@ const markdown = (content: any) => {
46
45
<tbody >
47
46
{
48
47
features .map ((feature ) => {
49
- const renderTitle = (title : string ) => {
50
- const placeholder = " [[GLOSSARY_TOOLTIP_SNIPPETS_SUBREQUEST]]" ;
51
-
52
- if (title .includes (placeholder )) {
53
- const [beforePlaceholder, afterPlaceholder] =
54
- title .split (placeholder );
55
-
56
- return (
57
- <>
58
- { beforePlaceholder }
59
- <GlossaryTooltip
60
- term = " Snippets subrequest"
61
- prepend = " A subrequest is "
62
- >
63
- subrequests
64
- </GlossaryTooltip >
65
- { afterPlaceholder }
66
- </>
67
- );
68
- }
69
-
70
- return markdown (title );
71
- };
72
-
73
48
return (
74
49
<tr >
75
- <th set :html = { renderTitle (feature .title )} />
50
+ <th set :html = { markdown (feature .title )} />
76
51
{ hasFree && <td set :html = { markdown (feature .free )} />}
77
52
{ hasPro && <td set :html = { markdown (feature .pro )} />}
78
53
{ hasBiz && <td set :html = { markdown (feature .biz )} />}
Original file line number Diff line number Diff line change 1368
1368
"ent" : 300
1369
1369
},
1370
1370
"subrequests" : {
1371
- "title" : " Number of [[GLOSSARY_TOOLTIP_SNIPPETS_SUBREQUEST]] " ,
1371
+ "title" : " Number of snippet subrequests " ,
1372
1372
"free" : 0 ,
1373
1373
"pro" : 2 ,
1374
1374
"biz" : 3 ,
2785
2785
"pro" : " No" ,
2786
2786
"biz" : " No" ,
2787
2787
"ent" : " Contact your account team"
2788
- },
2788
+ },
2789
2789
"custom_certificates" : {
2790
2790
"title" : " [Custom certificates](/cloudflare-for-platforms/cloudflare-for-saas/security/certificate-management/custom-certificates/)" ,
2791
2791
"free" : " No" ,
You can’t perform that action at this time.
0 commit comments