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

2xep tool fixes #1286

Merged
merged 3 commits into from
Jun 28, 2023
Merged

2xep tool fixes #1286

merged 3 commits into from
Jun 28, 2023

Conversation

mwild1
Copy link
Contributor

@mwild1 mwild1 commented Jun 28, 2023

This tool is handy to import from e.g. Markdown to XEP XML. Unfortunately I had problems with it emitting XML that wouldn't build. The changes in this branch allowed me to build the resulting XML using pandoc 2.9.2.1.

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.
@mwild1 mwild1 requested a review from Zash June 28, 2023 15:23
@@ -180,8 +183,7 @@ function Strikeout(s)
end

function Link(s, src, tit, attr)
return "<a href='" .. escape(src,true) .. "' title='" ..
escape(tit,true) .. "'>" .. s .. "</a>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it the XEP schema doesn't have a @title equivalent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not

@Kev Kev merged commit a12be8a into xsf:master Jun 28, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants