Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Conversion of US/UC/UCC from MD to HTML #326

Open
mmccool opened this issue Feb 12, 2025 · 1 comment
Open

Automate Conversion of US/UC/UCC from MD to HTML #326

mmccool opened this issue Feb 12, 2025 · 1 comment
Assignees

Comments

@mmccool
Copy link
Contributor

mmccool commented Feb 12, 2025

  • Issues for use cases, use case categories, and user stories appear as structured MD
  • It would be nice to have a script to convert these to HTML for inclusion in the document
  • We had an earlier tool, written in Perl, to convert from MD to HTML, but that was for the old template: https://github.com/w3c/wot-usecases/blob/main/CONTRIBUTIONS/md2html.pl
  • If we had something that could parse MD and turn it into JSON, then we could do what we want
  • This exists: https://github.com/njvack/markdown-to-json to parse github MD into JSON...
  • Then once we have JSON, we can extract the bits we want and output HTML using a template library like moustache
@mmccool mmccool assigned mmccool and chachamimm and unassigned mmccool Feb 12, 2025
chachamimm added a commit that referenced this issue Feb 18, 2025
Based on [Issue #326](#326), I have made changes to the perl script from md2html.pl for automatic conversion from US/UC/UCC MD to HTML.

I created perl script for Automate Conversion of US/UC/UCC from MD to HTML.
@chachamimm
Copy link
Collaborator

chachamimm commented Feb 18, 2025

I have verified that md2html.pl works. There was one problem, but i confirmed that it could convert from MD to HTML. There is the following description in the Issue made in YAML, which I don't think it is necessary when converting from MD to HTML.

```markdown

```

So I created new PR #329.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants