diff --git a/demo-site/index.html b/demo-site/index.html index 93f2742..0808b98 100644 --- a/demo-site/index.html +++ b/demo-site/index.html @@ -23,8 +23,7 @@

Transform Your Business with Expert Consulting

-

We help small businesses grow through strategic planning, process optimization, and digital transformation. Our team brings 15+ years of experience to drive your success. Superb

-

+

We help small businesses grow through strategic planning, process optimization, and digital transformation. Our team brings 15+ years of experience to drive your success. Superb

Get Started Today?
@@ -75,8 +74,7 @@ diff --git a/internal/parser/parser.go b/internal/parser/parser.go index 036c50d..2736d14 100644 --- a/internal/parser/parser.go +++ b/internal/parser/parser.go @@ -205,7 +205,8 @@ func (p *Parser) detectContentType(node *html.Node, classes []string) ContentTyp // Default divs/sections to markdown for rich content return ContentMarkdown case "span": - return ContentText + // Default spans to markdown for rich inline content + return ContentMarkdown default: return ContentText } diff --git a/lib/src/core/insertr.js b/lib/src/core/insertr.js index 4c7a9ee..e2e8c4e 100644 --- a/lib/src/core/insertr.js +++ b/lib/src/core/insertr.js @@ -339,6 +339,8 @@ export class InsertrCore { return 'link'; case 'div': case 'section': return 'markdown'; + case 'span': + return 'markdown'; // Match backend: spans support inline markdown default: return 'text'; }