diff --git a/docs/platforms/android/index.mdx b/docs/platforms/android/index.mdx index 7b497472192416..c1589c0746e51c 100644 --- a/docs/platforms/android/index.mdx +++ b/docs/platforms/android/index.mdx @@ -110,23 +110,29 @@ The wizard will prompt you to log in to Sentry. It'll then automatically do the Configuration is done via the application `AndroidManifest.xml`. Here's an example config which should get you started: -```xml {filename:AndroidManifest.xml} {"onboardingOptions": {"performance": "6-7", "profiling": "8-13", "session-replay": "14-16"}} +```xml {filename:AndroidManifest.xml} + + + + + + ``` diff --git a/src/rehype-onboarding-lines.js b/src/rehype-onboarding-lines.js index 1533f3613d1089..fe1ca6cf252357 100644 --- a/src/rehype-onboarding-lines.js +++ b/src/rehype-onboarding-lines.js @@ -51,15 +51,15 @@ function handle_inline_options(node) { let currentOption; // product options syntax - // ___PRODUCT_OPTION_START___ performance + // ___PRODUCT_OPTION_START___ session-replay // some lines here - // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_END___ session-replay const PRODUCT_OPTION_START = '___PRODUCT_OPTION_START___'; const PRODUCT_OPTION_END = '___PRODUCT_OPTION_END___'; node.children?.forEach(line => { const lineStr = toString(line); if (lineStr.includes(PRODUCT_OPTION_START)) { - currentOption = lineStr.split(PRODUCT_OPTION_START)[1].trim(); + currentOption = /___PRODUCT_OPTION_START___ ([-\w]+)/.exec(lineStr)?.[1].trim(); line.properties['data-onboarding-option-hidden'] = '1'; } else if (lineStr.includes(PRODUCT_OPTION_END)) { line.properties['data-onboarding-option-hidden'] = '1';