1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-16 14:25:20 -05:00
Commit Graph

9 Commits

Author SHA1 Message Date
Matthew Wild
f2b88f03ce tools/2xep.lua: emit <link> instead of <a>
XEPs don't use <a>.
2023-06-28 16:20:17 +01:00
Matthew Wild
88817709d3 tools/2xep.lua: Fix <code> elements having unsupported attributes
The XEP DTD only supports a single attribute for <code>, the 'caption'
attribute. I don't know if/how it's possible to attach a caption in markdown,
so I'm leaving that as unsupported. That means no attributes are supported,
and therefore I've removed them.

Usage of ```xml is common, so I've also added code to handle those and convert
them to example blocks.
2023-06-28 16:15:34 +01:00
Matthew Wild
56dd1cf33e tools/2xep.lua: Fix incorrect order of section close tags 2023-06-28 16:14:21 +01:00
Kim Alvefur
5a55805a67 tools/2xep: Fix encoding of simple list metadata
An extra wrapper element was added

```
<lastcall>
<lastcall>2017-11-15</lastcall>
</lastcall>
```

Correct is one element with text for each item

```
<lastcall>2017-11-15</lastcall>
```
2022-12-27 17:30:51 +01:00
Kim Alvefur
e7e1fca3bf Pass trough entity references into markdown
In order to allow e.g. &xepnnnn; references in text.
2021-03-03 15:51:19 +01:00
Kim Alvefur
0ccc34d1cf Reduce error on missing required metadata to yelling on stderr 2021-03-03 15:51:19 +01:00
Kim Alvefur
e7625fa93b Allow dependencies to be missing from metadata
xep2md leaves it out if there are zero dependencies in the input, so
seems sensible to mirror that in the opposite direction
2021-03-03 15:51:19 +01:00
Kim Alvefur
e8d73dec14 Tweak headers of to/from markdown tooling 2021-02-17 16:28:31 +01:00
Kim Alvefur
10da72c298 Add tooling for conversion to/from Markdown
Long past time I recorded these somewhere.
2021-02-14 02:12:23 +01:00