-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support <small> in HTML Reader and AsciiDoc Writer #5080
Comments
We don't have a dedicated element for this. We could consider parsing it as a native Span with class "small". That would mean it would be treated exactly the same as |
If that produces |
I tried converting this HTML:
…to AsciiDoc using Pandoc, but it just results in:
|
I also tried this HTML:
…but again, converting it to AsciiDoc just produces this:
Is there something that will generate this AsciiDoc?
|
Ernst de Haan <notifications@github.com> writes:
Is there _something_ that will generate this AsciiDoc?
```
[.small]#MUST NOT#
```
Currently not. We could consider converting spans to
this format, but only if you can have arbitrary inline
content (and not just plain text) inside the #s.
In the mean time you can use a small lua filter to
convert spans with class "small" to this syntax.
|
With the commit I just pushed, |
What about an HTML If not, should we keep this issue open until that is also covered? Or is that part of the request rejected? (Note that I'm not too bothered if it is indeed rejected, because I would do some preprocessing of the HTML to convert any |
@znerd yes, the HTML tag is converted. See the test in the referenced commit. |
@jgm Thanks! I checked the referenced, but my Haskell skills are seriously lacking, I'm afraid. I find it difficult to interpret the code. My background is in procedural languages (C, Java, etc.) and while I've done some functional programming (Clean) in the past, it's seriously rusty, and the syntax is not immediately obvious to me. |
Please support
<small>
in HTML input and translate it to[.small]
in AsciiDoc output.Sample input:
Sample output:
Extra information:
small
tag (W3C HTML Reference)The text was updated successfully, but these errors were encountered: