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

Is this gem intended to be used standalone? #240

Open
peteryates opened this issue Mar 31, 2022 · 3 comments
Open

Is this gem intended to be used standalone? #240

peteryates opened this issue Mar 31, 2022 · 3 comments

Comments

@peteryates
Copy link

Some time ago I created a small Govspeak prototype kit which was heavily used by the DfE as part of the early COVID-19 response - its purpose was to allow content to be researched with users prior to publishing.

That application is a static site generator and should have minimal dependencies. Unfortunately, requiring in govspeak pulls in GOV.UK Publishing Components which pulls in Rails; it's all a bit unwieldy.

As far as I can see there's only a minimal need for the publishing components by this gem, is it necessary to make it a concrete requirement? It's fine if the answer is 'yes', it might be easier for us to just support plain Markdown and apply our own extensions if and when we need them.

@chrispymm
Copy link

I'd like to add another vote to this.

We had a simple need to support (some) Govspeak syntax and as we were already using Kramdown, I thought it would be a simple switch to use this for parsing. It would have been except for the dependency on GOV.UK Publishing Componnents, which caused issues within our asset pipeline, and in our build pipleine due to ENV vars required by Plek (a dependency of Publishing Components).

It would seem to make sense to me that this repo would handle the conversion of Govspeak-flavoured-markdown into HTML, and the user is then indendently responsible for the styling of the HTML however they choose.

@peteryates
Copy link
Author

@chrispymm since raising this we did some work with govuk_markdown and it now supports inset text and details components. Others will only be a PR away.

@chrispymm
Copy link

@peteryates Thanks, govuk_markdown looks good but unfortunately we already have content published using govspeak syntax so wouldn't easily be able to switch to a different syntax now.

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