Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unsupported HTML block: <html> #1

Open
a-a-k opened this issue May 18, 2024 · 1 comment
Open

Unsupported HTML block: <html> #1

a-a-k opened this issue May 18, 2024 · 1 comment

Comments

@a-a-k
Copy link

a-a-k commented May 18, 2024

What's wrong here? How to proceed with html file?

Unable to generate slides: Error: Unsupported HTML block: <html>
<head>
<title>title</title>
<style>
@page { size: A4 landscape; margin: 1cm; }
body { font-family: sans-serif; }
h1, h2 { text-align: center; font-size: 32px; } 
.slide { page-break-before: always; margin-bottom: 20px; padding: 20px; border: 1px solid #ccc; }
.slide h2 { text-align: center; font-size: 28px; } 
.slide ul, .slide p { text-align: left; font-size: 20px; } 
.placeholder { background-color: #eee; padding: 10px; text-align: center; float: right; } 
</style>
</head>
<body>

    at fullTokenRules.html_block (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\parser\extract_slides.js:395:11)
    at processMarkdownToken (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\parser\extract_slides.js:74:5)
    at C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\parser\extract_slides.js:86:5
    at Array.forEach (<anonymous>)
    at processTokens (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\parser\extract_slides.js:81:10)
    at extractSlides (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\parser\extract_slides.js:603:3)
    at SlideGenerator.generateFromMarkdown (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\lib\slide_generator.js:154:47)
    at generateSlides (C:\Users\aakra\AppData\Roaming\npm\node_modules\@wescpy\md2gslides\bin\md2gslides.js:213:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@Herambhbiraris
Copy link

The error you're encountering indicates that the md2gslides tool doesn't support HTML blocks in your Markdown file. To resolve this, you should remove the HTML content and instead use pure Markdown to format your slides.

Title

Slide 1

  • Item 1
  • Item 2
  • Item 3

Slide 2

Subheading

Some text content here.

  • Item A
  • Item B
  • Item C

Slide 3

or else make it a whole html file using di ul and all.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants