Replies: 5 comments 1 reply
-
Do you have an example of the formatting that you are looking for? It's definitely possible to have an option to pass the generated HTML through some existing formatter, but this could also be done externally. Do you mind, telling me where you are using this module? |
Beta Was this translation helpful? Give feedback.
-
Hi Mathias
We have built a chatbot into our application that uses the OpenAI API. We struggled to get the LLMs to respond with decent HTML just using prompts – so we had to accept that they are best suited to Markdown. Hence the need for a convertor.
So here is an example output using your tool:
***@***.***
Certainly works!
Here is the latest on ChatGPT
***@***.***
I suspect they have a custom convertor that understands specific languages – but even “dark” mode makes a huge difference in presentation.
Hope that helps
Z
From: Mathias Kende ***@***.***>
Sent: Sunday, June 9, 2024 1:12 PM
To: mkende/pmarkdown ***@***.***>
Cc: Zahir Lalani ***@***.***>; Author ***@***.***>
Subject: Re: [mkende/pmarkdown] HTML Styles (Discussion #2)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
CAUTION: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe. Visit the information security portal (MetaCompliance - MyCompliance Cloud)<https://launcher.myapps.microsoft.com/api/signin/c773a37f-a0e3-4e64-98a8-3bd3dc6c6392?tenantId=e519c2e6-bc6d-4fdf-8d9c-923c2f002385> to do your training.
Do you have an example of the formatting that you are looking for? It's definitely possible to have an option to pass the generated HTML through some existing formatter, but this could also be done externally.
Do you mind, telling me where you are using this module?
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGBRWUKVJH5GVY5J677C5Q3ZGRA7XAVCNFSM6AAAAABJAYO5UWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOMJYHA2TE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
So its providing some means to customise the output. For example, if I say all <H1> use style xxxx – that is effectively an over-ride of the default styles that you have.
The alternate is to provide hardcoded “themes” that use different styles – and we are allowed to apply a theme to a convertor at run time?
Just some thoughts
Z
From: Mathias Kende ***@***.***>
Sent: Tuesday, June 11, 2024 9:29 AM
To: mkende/pmarkdown ***@***.***>
Cc: Zahir Lalani ***@***.***>; Author ***@***.***>
Subject: Re: [mkende/pmarkdown] HTML Styles (Discussion #2)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
CAUTION: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe. Visit the information security portal (MetaCompliance - MyCompliance Cloud)<https://launcher.myapps.microsoft.com/api/signin/c773a37f-a0e3-4e64-98a8-3bd3dc6c6392?tenantId=e519c2e6-bc6d-4fdf-8d9c-923c2f002385> to do your training.
Just to clarify, do you mean a way to format the raw html produced by the library or a way to customise the rendering of that html in the browser ?
—
Reply to this email directly, view it on GitHub<#2 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGBRWULJ6U6RVWXW2TP7ZBTZG2YL3AVCNFSM6AAAAABJAYO5UWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOMZWGEYTI>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
There is no style at all in the output of the library, just raw HTML tags. And the output is not a complete document, as it has no header and no body tag. So, what you can do is just add to the returne HTML a Are you using the Perl library or the |
Beta Was this translation helpful? Give feedback.
-
Ah right. We are using the library
Just pushed to UAT for testing today!
Thank you
Z
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Mathias Kende ***@***.***>
Sent: Tuesday, June 11, 2024 9:16:29 PM
To: mkende/pmarkdown ***@***.***>
Cc: Zahir Lalani ***@***.***>; Author ***@***.***>
Subject: Re: [mkende/pmarkdown] HTML Styles (Discussion #2)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
CAUTION: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe. Visit the information security portal (MetaCompliance - MyCompliance Cloud)<https://launcher.myapps.microsoft.com/api/signin/c773a37f-a0e3-4e64-98a8-3bd3dc6c6392?tenantId=e519c2e6-bc6d-4fdf-8d9c-923c2f002385> to do your training.
There is no style at all in the output of the library, just raw HTML tags. And the output is not a complete document, as it has no header and no body tag. So, what you can do is just add to the returne HTML a <style> element or a link to a stylesheet, so that you can provide whatever CSS you want.
Are you using the Perl library or the pmarkdown executable?
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGBRWUIJNBUIX4UQU4PSANDZG5LJ3AVCNFSM6AAAAABJAYO5UWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONBTGM4DS>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
just implemented this module and it works really well for conversions. Would be really nice to update it to match the cleaner looking code outputs you get with things like ChatGPT. Or the ability to define styles for elements. Otherwise - very nice
Beta Was this translation helpful? Give feedback.
All reactions