{"id":49360656,"url":"https://github.com/inledgroup/astromdblog","last_synced_at":"2026-04-27T16:10:07.236Z","repository":{"id":317998533,"uuid":"1065172860","full_name":"InledGroup/astromdblog","owner":"InledGroup","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-04T14:25:08.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T16:52:27.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InledGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T07:34:47.000Z","updated_at":"2026-04-04T14:25:11.000Z","dependencies_parsed_at":"2025-10-04T12:33:49.694Z","dependency_job_id":"d57fda0a-e7f1-41a0-a450-6f4980f75fb7","html_url":"https://github.com/InledGroup/astromdblog","commit_stats":null,"previous_names":["inledgroup/astromdblog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InledGroup/astromdblog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InledGroup%2Fastromdblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InledGroup%2Fastromdblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InledGroup%2Fastromdblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InledGroup%2Fastromdblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InledGroup","download_url":"https://codeload.github.com/InledGroup/astromdblog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InledGroup%2Fastromdblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32343811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-27T16:10:04.421Z","updated_at":"2026-04-27T16:10:07.222Z","avatar_url":"https://github.com/InledGroup.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astromdblog\nBlog template for Astro using Markdown rendering.\n\nCreate your own blog with Astro and Markdown.\n\n# How it works\n\nIn `pages/blog.astro`, blog entries are listed by calling the `BlogNews` component, which contains a list of entries in JavaScript.  \nThe way to list them is as follows:\n\u003cpre\u003e// News Section\nconst newsData = [\n    {\n        id: 1,\n        title: 'Blog new',\n        summary: 'summary',\n        date: '17-6-25',\n        category: 'tech',\n        image: 'path-to-your-img.png',\n        slug: 'blog-new'\n    }\n];\u003c/pre\u003e\n\nAs you add entries, you must update this list.\n\nThe posts are stored in `pages/blog/`, which is the page that calls the Markdown renderer `MarkdownRender` to render the Markdown document located in `public/blog`.\n\nThe structure of the blog page (in this case `undefined.astro`) is as follows:\n\u003cpre\u003e\n// Convert Markdown to HTML\nfunction markdownToHtml(markdown: string): string {\n  return markdown\n    // Headers\n    .replace(/^### (.*$)/gim, '\u003ch3\u003e$1\u003c/h3\u003e')\n    .replace(/^## (.*$)/gim, '\u003ch2\u003e$1\u003c/h2\u003e')\n    .replace(/^# (.*$)/gim, '\u003ch1\u003e$1\u003c/h1\u003e')\n    // Bold\n    .replace(/\\*\\*(.*)\\*\\*/gim, '\u003cstrong\u003e$1\u003c/strong\u003e')\n    // Italic\n    .replace(/\\*(.*)\\*/gim, '\u003cem\u003e$1\u003c/em\u003e')\n    // Links\n    .replace(/\\[([^\\]]*)\\]\\(([^\\)]*)\\)/gim, '\u003ca href=\"$2\"\u003e$1\u003c/a\u003e')\n    // Line breaks\n    .replace(/\\n$/gim, '\u003cbr /\u003e')\n    // Paragraphs\n    .replace(/\\n\\n/gim, '\u003c/p\u003e\u003cp\u003e')\n    .replace(/^(.*)$/gim, '\u003cp\u003e$1\u003c/p\u003e')\n    // Clean up empty paragraphs\n    .replace(/\u003cp\u003e\u003c\\/p\u003e/gim, '')\n    .replace(/\u003cp\u003e\u003ch/gim, '\u003ch')\n    .replace(/\u003c\\/h([1-6])\u003e\u003c\\/p\u003e/gim, '\u003c/h$1\u003e');\n}\n\n// Read markdown file\nconst markdownPath = path.join(process.cwd(), 'public', 'blog', 'undefined.md');\nlet markdownContent = '';\n\ntry {\n  markdownContent = fs.readFileSync(markdownPath, 'utf-8');\n} catch (error) {\n  console.error('Error reading markdown file:', error);\n  markdownContent = '# Error\\n\\nCould not load content.';\n}\n\nconst htmlContent = markdownToHtml(markdownContent);\n\u003c/pre\u003e\n\nWhere `const markdownPath = path.join(process.cwd(), 'public', 'blog', 'undefined.md');` is the constant that points to the Markdown document.\n\n# Formatting to Markdown\nTo format in Markdown, you can use the first visual Markdown editor on GitHub [InMD](https://inmd.inled.es) or write in [MDPDF](https://mdpdf.inled.es) and previsualize the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finledgroup%2Fastromdblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finledgroup%2Fastromdblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finledgroup%2Fastromdblog/lists"}