Ciao,
usando spesso il formato Markdown stavo cercando un buon convertitore nel formato usato quì nel Forum che se non sbaglio si chiama BBCode
Per ora ho trovato questo:
https://ricolovefeng.github.io/
non so se ne conoscete altri migliori, quì sotto ho fatto un test di conversione:
https://monastic.neocities.org/index.md
[postbg]bg3.png[/postbg][size=32px]Content management system, made in Vanilla <del>PHP</del>[/size]
[size=16px]Introducing Vanilla(static)CMS a lightweight and minimalistic Content Management System built with Vanilla JavaScript and Markdown. Designed for simplicity and ease of use, this CMS empowers users to manage content effortlessly, focusing on a clean and streamlined user experience:[/size]
[size=16px][/size]
[size=16px]This is the core idea:[/size]
Codice:
window.addEventListener("load", async (event) => {
const params = new URLSearchParams(document.location.search)
const filepath = params.get("c") ?? "index.md"
const filefetch = await fetch(filepath, {method: "GET", cache: "no-store"})
const markdown = await filefetch.text()
document.getElementById("content").innerHTML = marked.parse(markdown)
})
[size=24px]Installation[/size]
[size=16px]Follow these steps:[/size]
[size=16px]- download the latest release VanillaStaticCMS-0.1.0.zip
- extract the downloaded archive and locate the [backcolor=#f1edec]index.html[/backcolor] file into [backcolor=#f1edec]src[/backcolor] folder
- copy the [backcolor=#f1edec]index.html[/backcolor] file to your static server root folder
- open a web browser and navigate to your website URL
- you will see a Page Not Found error because you have to create the [backcolor=#f1edec]index.md[/backcolor] (Markdown)
[/size]
[size=16px][img]docs/images/installation.png[/img]
[align=center]installation.png[/align][/size]
[size=24px]Need More Info?[/size]
[size=16px]For detailed documentation and additional guidance, please visit our docs page.[/size]