From 7f39c01487f1d6fb9f41358b69696c0a255348fa Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Tue, 8 Sep 2026 14:49:54 +0530 Subject: [PATCH] 1050116: Updated proper lexer Share Point in React --- .../PDF-Viewer/react/depoyment-integration/share-point.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md b/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md index 063ff431f7..34d73cd241 100644 --- a/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md +++ b/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md @@ -142,7 +142,9 @@ src/webparts/pdfViewer/components/PdfViewer.tsx Replace the entire file with the following: -```tsx +{% tabs %} +{% highlight ts tabtitle="Standalone" %} +{% raw %} import * as React from 'react'; import type { IPdfViewerProps } from './IPdfViewerProps'; @@ -191,7 +193,9 @@ export default class PdfViewer extends React.Component { ); } } -``` +{% endraw %} +{% endhighlight %} +{% endtabs %} Remember to replace `your-site.sharepoint.com/sites/PdfViewerDemo` in `resourceUrl` with the URL of your SharePoint site before serving the web part.