Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:30:03+00:00 2026-06-13T13:30:03+00:00

Pandoc, when it parses a document, includes a metadata block. The Title part of

  • 0

Pandoc, when it parses a document, includes a metadata block. The Title part of the metadata block is of type [Inline], a markup data type specific to Pandoc. I am trying to find a way to convert that to Html so that I can embed that text directly into the Header element of an outgoing Html document.

What function, or combination of functions, is necessary to do this conversion?

[Inline] -> Html

[Str "My", Space, Str "Title"] -> ("My Title" :: Html)
  • Inline is a data type for inline markup provided in Pandoc
  • Html is the generic Html data type provided by Blaze Html

For the interim, I’m going to hack a function that handles Str and Space, but I know that I’m eventually going to need the way to do it that handles all of the Inline constructors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:30:04+00:00Added an answer on June 13, 2026 at 1:30 pm

    There are only a few helper functions that I’ve found that come along Pandoc (Data.Text.Pandoc.Shared and by your example the stringify function would be all you need (this functions do note that it removes any formatting, which I guess is not important for text that goes into the header element).

    inlineToHtml i = (Data.Text.Pandoc.Shared.stringify i) :: Html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: import Text.Pandoc myWriterOptions = defaultWriterOptions { writerHtml5 = True
In my script I'm about to run a command pandoc -Ss readme.txt -o readme.html
How to add table of contents to R Markdown HTML file using pandoc but
In the project pandoc , Paths_pandoc is imported in Shared.hs. Paths_pandoc.hs is located in
I'm creating a docx file from an HTML page using pandoc , but for
Is there a .net api that can do this? I saw Pandoc has a
From reading the documentation Jekyll's template data one might think that the way to
I have a nested, mutual recursive data structure , and want to associate computational
When attempting to use pandoc to convert JSON based files (.ipynb) from iPython notebook
I want to use some Haskell libraries (e.g. Darcs, Pandoc) from Python, but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.