- Issue created by @raffaelj
- Status changed to Closed: outdated
8 months ago 10:37am 29 April 2024 moved documentation of md2drupal.sh to my snippets repo: https://codeberg.org/raffaelj/drupal-snippets/src/branch/main/md2drupal
```js
const languages = Object.keys(Prism.languages)
.filter(k => !['extend','insertBefore','DFS'].includes(k));
```
const languages = Object.keys(Prism.languages)
.filter(k => !['extend','insertBefore','DFS'].includes(k));
```javascript
const languages = Object.keys(Prism.languages)
.filter(k => !['extend','insertBefore','DFS'].includes(k));
let aliases = {};
let tmpId = 999;
languages.forEach(k => {
const id = Prism.languages[k].__id || ++tmpId;
if (!aliases[id]) aliases[id] = [];
aliases[id].push(k);
});
console.log(Object.values(aliases));
```
const languages = Object.keys(Prism.languages)
.filter(k => !['extend','insertBefore','DFS'].includes(k));
let aliases = {};
let tmpId = 999;
languages.forEach(k => {
const id = Prism.languages[k].__id || ++tmpId;
if (!aliases[id]) aliases[id] = [];
aliases[id].push(k);
});
console.log(Object.values(aliases));
```json
[
[
"css"
],
[
"clike"
],
[
"markup",
"xml",
"html",
"mathml",
"svg"
],
[
"javascript",
"js"
],
[
"apacheconf"
],
[
"bash"
],
[
"diff"
],
[
"git"
],
[
"ini"
],
[
"json",
"jsonp"
],
[
"less"
],
[
"nginx"
],
[
"php"
],
[
"sass"
],
[
"scss"
],
[
"sql"
],
[
"twig"
],
[
"yaml"
]
]
```
[
[
"css"
],
[
"clike"
],
[
"markup",
"xml",
"html",
"mathml",
"svg"
],
[
"javascript",
"js"
],
[
"apacheconf"
],
[
"bash"
],
[
"diff"
],
[
"git"
],
[
"ini"
],
[
"json",
"jsonp"
],
[
"less"
],
[
"nginx"
],
[
"php"
],
[
"sass"
],
[
"scss"
],
[
"sql"
],
[
"twig"
],
[
"yaml"
]
]
```diff
- old
+ new
```
- old
+ new
```bash
$ ./md2drupal.sh drupal_prism.md > drupal_prism.html
$ ls
automate-release.html drupal_prism.html input.html markdown_strict.html md2drupal.sh
automate-release.md drupal_prism.md input.md markdown to drupal forum issue conversion.md syntax.md
```
$ ./md2drupal.sh drupal_prism.md > drupal_prism.html
$ ls
automate-release.html drupal_prism.html input.html markdown_strict.html md2drupal.sh
automate-release.md drupal_prism.md input.md markdown to drupal forum issue conversion.md syntax.md
```html
<p>Hello world.</p>
```
<p>Hello world.</p>
```twig
{{ dump() }}
<p>Hello {{ user.name }}.</p>
{% if user.active %}
<button>{{ 'deactivate'|t }}</button>
{% endif %}
```
{{ dump() }}
<p>Hello {{ user.name }}.</p>
{% if user.active %}
<button>{{ 'deactivate'|t }}</button>
{% endif %}
```sql
SELECT * FROM config WHERE name LIKE "%contact%"
```
SELECT * FROM config WHERE name LIKE "%contact%"
Closed: outdated
0.0
User interface
moved documentation of md2drupal.sh to my snippets repo: https://codeberg.org/raffaelj/drupal-snippets/src/branch/main/md2drupal