Use HTML tags in YAML
See original GitHub issueHeyho and thanks for this great piece of software. Makes a lot of fun to work with. One Question . Is it somehow possible to use html markup in our yaml files like so:
text: new module
context:
fieldLabel: |
<strong>
Some Bold Text
</strong> and now normal continued.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Add style to elements in HTML tags in YAML file - Stack Overflow
My requirement is to create tooltip inside a YAML file which will be linked to their respective fields in a react-form.
Read more >Adding HTML tags to a blueprint YAML file - Solved - Kirby forum
Is there a simple way to add HTML tags to my YAML file? I am trying to edit the appearence of returned values...
Read more >YAML tutorial in the context of Jekyll - Idratherbewriting.com
YAML (“YAML Ain't Markup Language”) doesn't use markup tags. · Because YAML does use white space for the structure, YAML is extremely picky...
Read more >4.1 YAML options | bookdown: Authoring Books and Technical ...
A guide to authoring books with R Markdown, including how to generate figures and tables, and insert cross-references, citations, HTML widgets, ...
Read more >Best HTML to YAML Converter Online tool - Code Beautify
What can you do with HTML to YAML? · This tool helps you to get plain yaml from html table very quickly without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tonimain You can 😃
Then use three curly braces to disable HTML escaping:
See: http://handlebarsjs.com/expressions.html
I’ve created js helper/parser for it kind of. I’ve used as advantage, that you can create component config file as .js. But we didn’t want to switch configs into js - so we have a special cases, where we have config.yml and config.js. Than I just use js module to load yml settings and inject the content from specific html.
Sample - breadcrumb.config.yml
Sample - breadcrumb.config.js
in
fractal-config-helper
are defined few helper functions, which I can use to load config.yml content according to the folder into theconfigObject
and after that I can inject content of html file also into thisconfigObject
. In this case it’s static definition of html, but you could build the html variable same as__filename
.Than you have to export
configObject
- this is from fractal documentation. And config.js has higher priority as config.yml